Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.60MB] [CPU: ▲4.08ms] 75% from 4 tests
This is a short check of server-side resources used by WP Responsive Menu
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,944.51ms on /wp-admin/admin.php?page=wprmenu-demo-import)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 37.38 ▼0.71 |
Dashboard /wp-admin | 4.11 ▲0.80 | 53.79 ▲7.30 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 52.69 ▲2.99 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 97.81 ▲6.72 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 42.59 ▲9.77 |
WPR Menu /wp-admin/admin.php?page=wp-responsive-menu | 4.13 | 68.08 |
Import Demo /wp-admin/admin.php?page=wprmenu-demo-import | 4.16 | 1,944.51 |
Server storage [IO: ▲4.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 124 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
wpr_optionsframework |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Responsive Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.79 ▲0.42 | 1.68 ▲0.15 | 40.04 ▼1.16 |
Dashboard /wp-admin | 2,230 ▲39 | 5.77 ▲0.90 | 102.67 ▼7.69 | 39.87 ▼3.43 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 1.97 ▼0.03 | 39.56 ▲1.24 | 35.14 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,564 ▲31 | 18.38 ▼4.93 | 590.46 ▼106.98 | 56.38 ▼5.33 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.22 ▲0.04 | 97.13 ▼3.92 | 42.11 ▼1.75 |
WPR Menu /wp-admin/admin.php?page=wp-responsive-menu | 9,659 | 11.77 | 384.51 | 214.95 |
Import Demo /wp-admin/admin.php?page=wprmenu-demo-import | 869 | 2.02 | 26.71 | 27.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- wpr_optionsframework
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: Add descriptions for screenshots #13, #14, #0 in wp-responsive-menu/assets to your readme.txt
wp-responsive-menu/wp-responsive-menu.php 92% from 13 tests
The principal PHP file in "WP Responsive Menu" v. 3.1.8 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin20,966 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 1,773 | 1,008 | 6,913 |
JSON | 1 | 0 | 0 | 6,129 |
CSS | 14 | 480 | 189 | 4,752 |
PHP | 18 | 714 | 624 | 2,651 |
SVG | 11 | 0 | 0 | 521 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 34.14 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 4.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 100.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 62 | |
▷ Static methods | 13 | 20.97% |
▷ Public methods | 59 | 95.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.84% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/assets/images/select_caret_t@2x.png | 0.21KB | 0.21KB | ▼ 1.85% |
inc/assets/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
inc/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
inc/assets/images/select_caret.png | 0.17KB | 0.18KB | 0.00% |
inc/images/check_flat/default.png | 2.96KB | 1.57KB | ▼ 47.12% |