Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.01ms] Passed 4 tests
Analyzing server-side resources used by WP Menu Custom Fields
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.95 ▼10.40 |
Dashboard /wp-admin | 3.44 ▲0.14 | 44.98 ▼4.72 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.49 ▼1.61 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 90.65 ▼3.30 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.77 ▲6.27 |
Server storage [IO: ▲7.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Menu Custom Fields
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲137 | 13.60 ▼1.14 | 6.37 ▲4.50 | 42.98 ▼0.75 |
Dashboard /wp-admin | 2,203 ▲12 | 5.86 ▲0.98 | 101.47 ▼8.81 | 40.52 ▼5.93 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.01 | 39.99 ▲5.24 | 38.95 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,514 ▼34 | 17.63 ▼0.52 | 645.28 ▼38.03 | 55.10 ▲1.25 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.25 ▲0.03 | 94.33 ▼8.47 | 45.34 ▼1.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'WP_Menu_Custom_Fields\\Inc\\Traits\\Singleton' not found in wp-content/plugins/wp-menu-custom-fields/inc/classes/class-custom-nav-menu-fields.php on line 17
- > PHP Fatal error
Trait 'WP_Menu_Custom_Fields\\Inc\\Traits\\Singleton' not found in wp-content/plugins/wp-menu-custom-fields/inc/classes/class-assets.php on line 15
- > PHP Fatal error
Trait 'WP_Menu_Custom_Fields\\Inc\\Traits\\Singleton' not found in wp-content/plugins/wp-menu-custom-fields/inc/classes/class-plugin.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/wp-menu-custom-fields/wp-menu-custom-fields.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
2 plugin tags: navigation menu, navigation menu custom fields
wp-menu-custom-fields/wp-menu-custom-fields.php Passed 13 tests
This is the main PHP file of "WP Menu Custom Fields" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Adds custom fields on menu items under Appearance -> Menus and shows it on front-end.
Code Analysis Passed 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
No dangerous file extensions were detected1,035 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 132 | 302 | 426 |
JavaScript | 7 | 70 | 104 | 323 |
Sass | 3 | 25 | 9 | 133 |
JSON | 2 | 0 | 0 | 110 |
PO File | 1 | 14 | 18 | 41 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of 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.43 |
Average class complexity | 19.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 7 | 38.89% |
▷ Protected methods | 7 | 38.89% |
▷ Private methods | 4 | 22.22% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 6.99MB with 5.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/screenshot-8.png | 1,118.55KB | 242.14KB | ▼ 78.35% |
screenshots/screenshot-7.png | 969.59KB | 266.03KB | ▼ 72.56% |
screenshots/screenshot-6.png | 652.83KB | 122.96KB | ▼ 81.16% |
screenshots/screenshot-9.png | 473.59KB | 67.13KB | ▼ 85.83% |
screenshots/screenshot-4.png | 606.91KB | 100.47KB | ▼ 83.45% |