Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲4.31MB] [CPU: ▼277.92ms] 75% from 4 tests
Analyzing server-side resources used by Menu Item Scheduler
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,687.00ms on /wp-admin/admin.php?page=menu-item-scheduler)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.27 ▲4.75 | 80.77 ▲23.28 |
Dashboard /wp-admin | 8.28 ▲4.87 | 66.48 ▲29.62 |
Posts /wp-admin/edit.php | 8.28 ▲4.64 | 61.66 ▲16.60 |
Add New Post /wp-admin/post-new.php | 9.96 ▲2.99 | 122.38 ▼1,160.46 |
Media Library /wp-admin/upload.php | 8.28 ▲4.98 | 46.25 ▲8.89 |
Menu Item - Scheduler /wp-admin/admin.php?page=menu-item-scheduler | 8.28 | 1,687.00 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.28 | 49.65 |
Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
fs_gdpr |
fs_debug_mode |
Browser metrics Passed 4 tests
Menu Item Scheduler: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲84 | 16.01 ▲0.02 | 5.83 ▲0.08 | 2.13 ▼0.17 |
Dashboard /wp-admin | 2,943 ▲85 | 6.19 ▲0.08 | 125.86 ▼19.88 | 170.32 ▲4.29 |
Posts /wp-admin/edit.php | 2,742 ▲58 | 3.27 ▲0.03 | 65.98 ▲1.87 | 155.73 ▲11.87 |
Add New Post /wp-admin/post-new.php | 1,713 ▼39 | 21.95 ▲0.75 | 418.87 ▼28.83 | 156.04 ▼0.38 |
Media Library /wp-admin/upload.php | 1,752 ▲54 | 5.61 ▲0.18 | 150.25 ▼1.32 | 210.15 ▲11.79 |
Menu Item - Scheduler /wp-admin/admin.php?page=menu-item-scheduler | 1,298 | 2.54 | 54.76 | 172.97 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,439 | 2.76 | 56.35 | 119.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/menu-item-scheduler/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 4 options
- fs_accounts
- fs_debug_mode
- fs_active_plugins
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/menu-item-scheduler/freemius/templates/ajax-loader.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/menu-item-scheduler/edit-walker-nav-menu.php:11
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/menu-item-scheduler/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/menu-item-scheduler/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/menu-item-scheduler/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/menu-item-scheduler/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/menu-item-scheduler/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/menu-item-scheduler/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-item-scheduler/menu-item-scheduler.php:20
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/menu-item-scheduler/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/menu-item-scheduler/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: nav menu item, redirect, datetime, menu item scheduler, hide...
menu-item-scheduler/menu-item-scheduler.php Passed 13 tests
Analyzing the main PHP file in "Menu Item Scheduler" version 1.0.0
62 characters long description:
Redirect or Hide/show specific menu item for scheduled period.
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin45,710 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 7,150 | 15,981 | 30,041 |
PO File | 12 | 6,960 | 8,455 | 15,240 |
JavaScript | 4 | 34 | 59 | 195 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 27 |
CSS | 12 | 0 | 0 | 15 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 83.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,132 | |
▷ Static methods | 173 | 15.28% |
▷ Public methods | 792 | 69.96% |
▷ Protected methods | 15 | 1.33% |
▷ Private methods | 325 | 28.71% |
Functions | 102 | |
▷ Named functions | 102 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 122 | |
▷ Global constants | 97 | 79.51% |
▷ Class constants | 25 | 20.49% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |