Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.56ms] Passed 4 tests
A check of server-side resources used by WP Group Menu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.99 ▼5.16 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.89 ▲1.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.57 ▼10.30 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.91 ▼11.56 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.20 ▲0.78 |
Manage /wp-admin/admin.php?page=wpgroupmenu&tab=manage | 3.26 | 35.62 |
Help /wp-admin/admin.php?page=wpgroupmenu&tab=help | 3.23 | 34.13 |
Settings /wp-admin/admin.php?page=wpgroupmenu&tab=settings | 3.28 | 29.35 |
Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_wpgroupmenu_sites |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
wpgroupmenu_font_color |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
wpgroupmenu_background_color |
wpgroupmenu_active_font_color |
db_upgraded |
wpgroupmenu_active_background_color |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Group Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲234 | 13.63 ▼0.95 | 6.05 ▲4.26 | 41.56 ▼0.41 |
Dashboard /wp-admin | 2,222 ▲34 | 4.87 ▼0.01 | 115.36 ▲8.69 | 84.58 ▲42.28 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.05 ▲0.05 | 37.20 ▼2.15 | 33.34 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,693 ▲174 | 22.15 ▼1.14 | 774.67 ▲67.46 | 56.68 ▲2.08 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.17 ▼0.06 | 106.14 ▲6.02 | 84.74 ▲38.11 |
Manage /wp-admin/admin.php?page=wpgroupmenu&tab=manage | 1,045 | 2.13 | 26.99 | 35.63 |
Help /wp-admin/admin.php?page=wpgroupmenu&tab=help | 884 | 2.12 | 28.55 | 29.54 |
Settings /wp-admin/admin.php?page=wpgroupmenu&tab=settings | 1,169 | 2.39 | 41.72 | 28.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wpgroupmenu_sites
- The uninstall procedure has failed, leaving 12 options in the database
- widget_recent-comments
- wpgroupmenu_active_font_color
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- wpgroupmenu_active_background_color
- wpgroupmenu_font_color
- wpgroupmenu_alignment
- ...
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
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-group-menu/wpgroupmenu_settings.php
- > /wp-content/plugins/wp-group-menu/wpgroupmenu.php
- > /wp-content/plugins/wp-group-menu/wpgroupmenu_help.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(WPGROUPMENU_PLUGIN_DIRwpgroupmenu_class.php): failed to open stream: No such file or directory in wp-content/plugins/wp-group-menu/wpgroupmenu_manage.php on line 3
- > PHP Warning
Use of undefined constant WPGROUPMENU_PLUGIN_DIR - assumed 'WPGROUPMENU_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-group-menu/wpgroupmenu_manage.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'WPGROUPMENU_PLUGIN_DIRwpgroupmenu_class.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-group-menu/wpgroupmenu_manage.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-group-menu/wpgroupmenu_class.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in wp-group-menu/assets to your readme.txt
wp-group-menu/wpgroupmenu.php 92% from 13 tests
The entry point to "WP Group Menu" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-group-menu.php" instead of "wpgroupmenu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,142 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 337 | 194 | 1,948 |
PHP | 6 | 51 | 27 | 604 |
CSS | 3 | 49 | 38 | 550 |
Markdown | 1 | 29 | 0 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.10KB | 0.24KB | ▼ 78.08% |
images/admin_logo.png | 9.74KB | 5.73KB | ▼ 41.20% |