Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼20.08ms] Passed 4 tests
A check of server-side resources used by Custom Admin Menu
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 26.74 ▼17.43 |
Dashboard /wp-admin | 3.39 ▲0.04 | 33.47 ▼32.74 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 41.60 ▼12.54 |
Add New Post /wp-admin/post-new.php | 5.70 ▼0.18 | 82.73 ▼17.62 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 34.76 ▼1.78 |
Custom Admin Menu /wp-admin/admin.php?page=adminmenu-settings | 3.37 | 27.41 |
DuoGeek /wp-admin/admin.php?page=duogeek-panel | 3.37 | 33.23 |
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses | 3.37 | 27.12 |
Help /wp-admin/admin.php?page=duogeek-panel-help | 3.37 | 27.39 |
Server storage [IO: ▲2.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 177 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Admin Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲134 | 13.75 ▼0.47 | 2.52 ▲0.70 | 42.51 ▼1.52 |
Dashboard /wp-admin | 2,262 ▲85 | 5.95 ▲0.35 | 90.19 ▼11.79 | 41.14 ▼0.93 |
Posts /wp-admin/edit.php | 2,171 ▲71 | 2.40 ▲0.38 | 47.58 ▲9.75 | 45.88 ▲11.73 |
Add New Post /wp-admin/post-new.php | 1,741 ▲204 | 22.68 ▼0.62 | 607.27 ▼5.93 | 34.25 ▼24.33 |
Media Library /wp-admin/upload.php | 1,464 ▲67 | 4.50 ▲0.30 | 100.90 ▼4.06 | 43.63 ▼0.14 |
Custom Admin Menu /wp-admin/admin.php?page=adminmenu-settings | 1,532 | 6.54 | 128.93 | 59.21 |
DuoGeek /wp-admin/admin.php?page=duogeek-panel | 785 | 1.53 | 6.58 | 26.79 |
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses | 851 | 2.04 | 26.98 | 21.74 |
Help /wp-admin/admin.php?page=duogeek-panel-help | 866 | 2.15 | 28.73 | 25.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- recovery_mode_email_last_sent
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 17 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=duogeek-panel-help
- > Notice in wp-content/plugins/custom-admin-menu/adminmenu-files/includes/admin-internal.php+3
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=adminmenu-settings
- > Warning in wp-content/plugins/custom-admin-menu/adminmenu-files/modules/class.menu.management.php+55
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=duogeek-panel
- > Error in wp-content/plugins/custom-admin-menu/duogeek/duogeek-panel.php+413
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/custom-admin-menu/duogeek/duogeek-panel.php:413
Stack trace:
#0 wp-includes/class-wp-hook.php(310): DuoGeekPlugins->duogeek_panel_cb()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP 50% 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
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-admin-menu/adminmenu-files/includes/admin-internal.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/custom-admin-menu/adminmenu-files/includes/login-internal.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/custom-admin-menu/duogeek/class.customPostType.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/custom-admin-menu/duogeek/helper.php:6
- > PHP Fatal error
Uncaught Error: Class 'AdminMenu' not found in wp-content/plugins/custom-admin-menu/adminmenu-files/modules/class.menu.management.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/custom-admin-menu/duogeek/duogeek-panel.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=duogeek-panel-help
- > Network (severe)
http://fonts.googleapis.com/css?family= - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/admin.php?page=adminmenu-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=adminmenu-settings
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== custom-admin-menu ===
)
custom-admin-menu/adminmenu.php 92% from 13 tests
"Custom Admin Menu" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-admin-menu.php" instead of "adminmenu.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
No dangerous file extensions were detected18,163 lines of code in 97 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 55 | 913 | 300 | 9,894 |
JavaScript | 5 | 563 | 932 | 2,790 |
PHP | 8 | 310 | 144 | 1,470 |
Sass | 13 | 26 | 24 | 1,352 |
LESS | 13 | 26 | 33 | 1,343 |
SVG | 3 | 0 | 0 | 1,314 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.87 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 5 | 13.16% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
66 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
duogeek/inc/icheck/skins/square/grey.png | 2.13KB | 1.83KB | ▼ 14.27% |
duogeek/inc/icheck/skins/minimal/minimal@2x.png | 1.38KB | 2.66KB | 0.00% |
duogeek/inc/icheck/skins/square/blue.png | 2.13KB | 1.83KB | ▼ 14.42% |
duogeek/inc/icheck/skins/flat/aero@2x.png | 3.14KB | 2.77KB | ▼ 11.93% |
duogeek/inc/icheck/skins/minimal/red.png | 1.10KB | 1.45KB | 0.00% |