Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method SetupFunctions::install_emh() should not be called statically
Server metrics [RAM: ▼0.11MB] [CPU: ▼7.58ms] Passed 4 tests
This is a short check of server-side resources used by Easy Menu Handler (EMH)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.44 ▲4.23 |
Dashboard /wp-admin | 3.30 ▼0.01 | 50.58 ▼4.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.15 ▲2.95 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.44 | 74.36 ▼31.07 |
Media Library /wp-admin/upload.php | 3.22 ▼0.02 | 37.27 ▲2.60 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Easy Menu Handler (EMH): 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,814 ▲28 | 14.24 ▲0.01 | 2.08 ▼0.16 | 43.98 ▼0.64 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.05 | 92.65 ▼10.11 | 40.56 ▼6.84 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.10 ▼0.06 | 42.10 ▲5.10 | 35.23 ▲1.08 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.26 ▲0.07 | 682.59 ▼54.12 | 56.93 ▲4.00 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.15 | 98.25 ▼10.71 | 42.41 ▼3.60 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/easy-menu-handler/EasyMenuHandler.php
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: menu, quick menu remove, plugins, navigation, one-click...
easy-menu-handler/EasyMenuHandler.php 92% from 13 tests
The main PHP script in "Easy Menu Handler (EMH)" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("easy-menu-handler.php" instead of "EasyMenuHandler.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin123 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 25 | 0 | 90 |
PHP | 3 | 23 | 25 | 28 |
CSS | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/redbin.png | 3.10KB | 0.64KB | ▼ 79.34% |
images/bin.png | 3.29KB | 0.77KB | ▼ 76.54% |