Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼1.06ms] 75% from 4 tests
An overview of server-side resources used by If Menu - Visibility control for Menus
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 705.44ms on /wp-admin/themes.php?page=if-menu)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 44.07 ▲0.34 |
Dashboard /wp-admin | 3.61 ▲0.31 | 51.00 ▲0.13 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 52.90 ▼0.67 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 90.65 ▼4.04 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 43.82 ▲8.81 |
If Menu /wp-admin/themes.php?page=if-menu | 3.52 | 705.44 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 147 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
If Menu - Visibility control for Menus: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.48 ▲0.10 | 1.94 ▲0.25 | 42.96 ▼3.29 |
Dashboard /wp-admin | 2,232 ▲44 | 4.85 ▼1.05 | 103.22 ▼16.61 | 39.29 ▼4.28 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.02 ▼0.03 | 36.72 ▼4.95 | 33.00 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,555 ▲35 | 23.28 ▼0.08 | 679.44 ▼16.21 | 64.31 ▲1.00 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.17 ▲0.06 | 102.80 ▼8.50 | 45.94 ▲0.49 |
If Menu /wp-admin/themes.php?page=if-menu | 1,107 | 2.05 | 22.30 | 63.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 105× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/if-menu/src/if-menu-nav-menu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/if-menu/src/user-info.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/if-menu/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/if-menu/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/if-menu/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/if-menu/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/if-menu/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/if-menu/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/if-menu/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/if-menu/vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
if-menu/if-menu.php Passed 13 tests
The main PHP script in "If Menu - Visibility control for Menus" version 0.17.0 is automatically included on every request by WordPress
65 characters long description:
Display tailored menu items to each visitor with visibility rules
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,135 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 116 | 650 | 708 | 4,108 |
JSON | 4 | 0 | 0 | 359 |
CSS | 3 | 71 | 4 | 331 |
YAML | 3 | 30 | 3 | 118 |
PO File | 2 | 20 | 24 | 79 |
JavaScript | 2 | 19 | 6 | 62 |
Markdown | 2 | 23 | 0 | 47 |
XML | 1 | 3 | 0 | 27 |
SVG | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 3.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 108 | |
▷ Abstract classes | 1 | 0.93% |
▷ Concrete classes | 107 | 99.07% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 17 | 12.41% |
▷ Public methods | 99 | 72.26% |
▷ Protected methods | 32 | 23.36% |
▷ Private methods | 6 | 4.38% |
Functions | 35 | |
▷ Named functions | 10 | 28.57% |
▷ Anonymous functions | 25 | 71.43% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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 compressed PNG file occupies 0.19MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/plan-premium.png | 191.18KB | 202.21KB | 0.00% |