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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.39ms] Passed 4 tests
An overview of server-side resources used by Menu Item Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.41 ▼5.21 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.28 ▼4.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.34 ▲1.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.89 ▼19.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.92 ▼0.30 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Menu Item Types: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.38 ▲0.01 | 1.58 ▼0.15 | 40.93 ▼3.18 |
Dashboard /wp-admin | 2,198 ▲18 | 5.59 ▼0.06 | 82.15 ▼6.00 | 37.96 ▼3.47 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 34.83 ▲0.70 | 33.81 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.27 ▼0.48 | 641.33 ▼78.99 | 71.21 ▲17.66 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▲0.01 | 94.86 ▼5.79 | 41.26 ▼2.73 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_field() in wp-content/plugins/menu-item-types/inc/render/templates/paragraph.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/menu-item-types/inc/render/templates/nolink.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_field() in wp-content/plugins/menu-item-types/inc/render/templates/image.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_field() in wp-content/plugins/menu-item-types/inc/render/templates/heading.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
These attributes need to be fixed:
- Donate link: Invalid URI ("")
menu-item-types/menu-item-types.php Passed 13 tests
"Menu Item Types" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
Use elements of a personalized type in the navigation menus.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10,860 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 9,677 |
PHP | 20 | 432 | 211 | 815 |
SVG | 13 | 0 | 12 | 136 |
PO File | 1 | 30 | 32 | 79 |
Sass | 1 | 26 | 0 | 69 |
CSS | 1 | 16 | 10 | 42 |
JavaScript | 2 | 33 | 33 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin