Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.37ms] Passed 4 tests
This is a short check of server-side resources used by Slide Nav
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.27 ▼3.01 |
Dashboard /wp-admin | 3.60 ▲0.30 | 52.25 ▲2.75 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 55.97 ▲8.83 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 89.30 ▼2.85 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.85 ▲1.62 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cvmenu_header |
widget_recent-comments |
cvmenu_color |
widget_theysaidso_widget |
cvmenu_basic |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Slide Nav
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲234 | 15.01 ▲0.71 | 1.65 ▼0.49 | 39.70 ▼2.78 |
Dashboard /wp-admin | 2,400 ▲209 | 6.61 ▲1.74 | 134.17 ▲20.81 | 43.47 ▼5.32 |
Posts /wp-admin/edit.php | 2,306 ▲214 | 3.55 ▲1.49 | 56.87 ▲17.34 | 33.74 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 17.54 ▲0.01 | 650.47 ▼58.63 | 38.47 ▼16.58 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.41 ▲0.16 | 82.84 ▼22.61 | 46.15 ▲0.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- cvmenu_basic
- theysaidso_admin_options
- cvmenu_header
- cvmenu_color
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cv-menu/public/partials/cv-menu-public-display.php
- > /wp-content/plugins/cv-menu/admin/partials/plugin-cv-menu-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is missing in cv-menu/assets to your readme.txt
cv-menu/cv-menu.php Passed 13 tests
"Slide Nav" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Responsive Android Navigation Drawer style wordpress mobile menu.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,161 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 304 | 679 | 953 |
CSS | 8 | 40 | 59 | 717 |
HTML | 1 | 11 | 0 | 296 |
SVG | 3 | 1 | 2 | 92 |
JavaScript | 3 | 16 | 33 | 81 |
JSON | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 60 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.69% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/cv-menu-16.png | 19.78KB | 0.66KB | ▼ 96.69% |