Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼10.65ms] Passed 4 tests
An overview of server-side resources used by WPMH Clone Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.10 | 43.96 ▼1.77 |
Dashboard /wp-admin | 3.69 ▲0.05 | 50.93 ▼20.88 |
Posts /wp-admin/edit.php | 3.74 ▲0.06 | 54.46 ▼1.02 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.08 | 86.08 ▼18.91 |
Media Library /wp-admin/upload.php | 3.55 ▲0.06 | 39.62 ▲2.69 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPMH Clone Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲131 | 13.50 ▼0.90 | 8.91 ▲7.19 | 40.14 ▼1.64 |
Dashboard /wp-admin | 2,215 ▲38 | 5.55 ▼0.12 | 85.26 ▼8.63 | 70.80 ▲28.75 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.99 ▼0.06 | 38.48 ▼2.36 | 33.71 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,549 ▲15 | 23.03 ▼0.22 | 724.80 ▲108.27 | 53.14 ▼1.64 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.17 ▼0.09 | 101.86 ▲1.05 | 74.01 ▲29.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpmh-clone-menu/public/partials/wpmh-clone-menu-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_nav_menus() in wp-content/plugins/wpmh-clone-menu/admin/partials/wpmh-clone-menu-admin-display.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: clone menu, wordpress menu, copy menu, wp menu clone, menu duplicate...
wpmh-clone-menu/wpmh-clone-menu.php 92% from 13 tests
The principal PHP file in "WPMH Clone Menu" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)
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
No dangerous file extensions were detected415 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 137 | 552 | 321 |
JavaScript | 2 | 6 | 54 | 91 |
SVG | 2 | 0 | 0 | 2 |
CSS | 2 | 0 | 8 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
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 |
admin/images/experimental-documents-arcadeX20.png | 1.55KB | 1.38KB | ▼ 10.96% |
admin/images/experimental-documents-arcade.png | 7.69KB | 4.00KB | ▼ 48.03% |