Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼2.59ms] Passed 4 tests
Server-side resources used by Widget Menuizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 44.99 ▲1.08 |
Dashboard /wp-admin | 3.67 ▲0.37 | 53.02 ▼2.62 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 59.31 ▲0.56 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 92.43 ▼9.36 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 43.43 ▲7.48 |
Widget Menuizer /wp-admin/options-general.php?page=widget_menuizer | 3.56 | 40.56 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Widget Menuizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.12 | 1.54 ▼0.52 | 37.61 ▼7.40 |
Dashboard /wp-admin | 2,196 ▲16 | 5.56 ▼0.08 | 89.99 ▲2.72 | 41.07 ▼2.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.00 | 37.83 ▼1.78 | 37.85 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.11 ▼5.50 | 639.21 ▼52.48 | 69.46 ▲20.75 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.16 ▼0.03 | 124.31 ▲18.13 | 49.93 ▲3.88 |
Widget Menuizer /wp-admin/options-general.php?page=widget_menuizer | 812 | 1.99 | 29.07 | 28.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/widget-menuizer/inc/classes/fields/class-cshp-field-select.php
- > /wp-content/plugins/widget-menuizer/widget-menuizer.php
- > /wp-content/plugins/widget-menuizer/inc/classes/fields/class-cshp-field-textarea.php
- > /wp-content/plugins/widget-menuizer/inc/classes/fields/class-cshp-field-checkbox.php
- > /wp-content/plugins/widget-menuizer/inc/classes/fields/class-cshp-field-number.php
- > /wp-content/plugins/widget-menuizer/inc/classes/class-cshp-settings-page.php
- > /wp-content/plugins/widget-menuizer/inc/classes/class-cshp-settings-section.php
- > /wp-content/plugins/widget-menuizer/inc/classes/class-cshp-field.php
- > /wp-content/plugins/widget-menuizer/views/admin/menu-settings.php
- > /wp-content/plugins/widget-menuizer/inc/classes/class-cshp-settings-setting.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/nav-menu.php' (include_path='.:/usr/share/php') in wp-content/plugins/widget-menuizer/inc/classes/class-sidebar-walker-nav-menu-edit.php on line 8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/widget-menuizer/inc/classes/class-sidebar-walker-nav-menu-edit.php on line 8
- > PHP Warning
require_once(ABSPATHwp-admin/includes/nav-menu.php): failed to open stream: No such file or directory in wp-content/plugins/widget-menuizer/inc/classes/class-sidebar-walker-nav-menu-edit.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== widget-menuizer ===
)
widget-menuizer/widget-menuizer.php Passed 13 tests
This is the main PHP file of "Widget Menuizer" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Embed sidebar regions in your WordPress navigation menus.
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
No dangerous file extensions were detected948 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 100 | 445 | 813 |
JavaScript | 1 | 11 | 25 | 69 |
CSS | 3 | 4 | 3 | 66 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 91.18% |
▷ Protected methods | 1 | 2.94% |
▷ Private methods | 2 | 5.88% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin