Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.91MB] [CPU: ▼42.53ms] Passed 4 tests
This is a short check of server-side resources used by Custom Menu Class
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 43.10 ▲2.29 |
Dashboard /wp-admin | 3.04 ▼0.27 | 20.71 ▼40.70 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 19.70 ▼37.80 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 20.40 ▼78.86 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 23.15 ▼12.76 |
Menu CSS Classes /wp-admin/edit.php?post_type=cmc_classes | 3.04 | 21.76 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Custom Menu Class: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 14.64 ▲0.37 | 2.04 ▲0.10 | 46.15 ▼2.23 |
Dashboard /wp-admin | 2,213 ▲22 | 4.88 ▼0.02 | 105.20 ▼6.20 | 40.74 ▼4.17 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.04 ▲0.01 | 41.45 ▲1.69 | 33.67 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.42 ▲5.94 | 738.60 ▲106.46 | 58.13 ▲11.12 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▼0.05 | 115.43 ▲1.44 | 50.84 ▲8.77 |
Menu CSS Classes /wp-admin/edit.php?post_type=cmc_classes | 1,035 | 1.96 | 35.44 | 30.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/custom-menu-class/custom-menu-class.php+37
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cmc_classes
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/custom-menu-class/custom-menu-class.php+37
Function create_function() is deprecated
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/nav-menu.php): failed to open stream: No such file or directory in wp-content/plugins/custom-menu-class/custom-menu-class.php on line 131
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-menu-class/custom-menu-class.php on line 131
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/nav-menu.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-menu-class/custom-menu-class.php on line 131
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-menu-class/classes.php:31
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Here's a screenshot of it in action)
custom-menu-class/custom-menu-class.php Passed 13 tests
"Custom Menu Class" version 0.2.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
43 characters long description:
Select predefined CSS classes to menu items
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
Success! There were no dangerous files found in this plugin206 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 45 | 206 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 6 | 75.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin