Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼272.21ms] Passed 4 tests
Server-side resources used by AdminQuickbar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.38 | 72.04 ▲18.87 |
Dashboard /wp-admin | 3.73 ▲0.32 | 49.44 ▲16.50 |
Posts /wp-admin/edit.php | 3.91 ▲0.27 | 57.63 ▲19.88 |
Add New Post /wp-admin/post-new.php | 7.14 ▲0.17 | 115.81 ▼1,136.57 |
Media Library /wp-admin/upload.php | 3.70 ▲0.40 | 36.71 ▲12.35 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 1 new option
New WordPress options |
---|
category_children |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AdminQuickbar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,064 ▲1,320 | 16.49 ▲0.87 | 17.45 ▲11.37 | 2.22 ▼0.02 |
Dashboard /wp-admin | 3,501 ▲646 | 6.55 ▲0.45 | 118.89 ▼15.25 | 172.03 ▲12.19 |
Posts /wp-admin/edit.php | 3,294 ▲637 | 3.05 ▼0.19 | 70.57 ▲7.50 | 149.82 ▲13.63 |
Add New Post /wp-admin/post-new.php | 2,096 ▲435 | 21.41 ▲4.83 | 405.82 ▲1.01 | 167.96 ▲11.51 |
Media Library /wp-admin/upload.php | 2,304 ▲603 | 5.65 ▲0.14 | 142.56 ▼7.00 | 190.28 ▼3.46 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- category_children
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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/adminquickbar/Lib/partials/language-flag.php
- > /wp-content/plugins/adminquickbar/Lib/partials/loop-post-types.php
- > /wp-content/plugins/adminquickbar/Lib/partials/toolbar-item.php
- > /wp-content/plugins/adminquickbar/Lib/partials/settings.php
- > /wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php
- > /wp-content/plugins/adminquickbar/Lib/partials/thumbnail.php
- 41× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: postType in wp-content/plugins/adminquickbar/Lib/partials/loop-post-types.php on line 9
- > PHP Notice
Undefined variable: postTypeInfo in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 31
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/adminquickbar/Lib/partials/loop-post-types.php on line 15
- > PHP Notice
Undefined variable: contextMenuData in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 19
- > PHP Notice
Undefined variable: class in wp-content/plugins/adminquickbar/Lib/partials/thumbnail.php on line 7
- > PHP Notice
Undefined variable: style in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 18
- > PHP Notice
Undefined variable: unTrashUrl in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 21
- > PHP Notice
Undefined variable: postClasses in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 17
- > PHP Notice
Undefined variable: permalink in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 43
- > PHP Notice
Undefined variable: postType in wp-content/plugins/adminquickbar/Lib/partials/loop-post-types.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: post, sidebar, post list, rtode, rto...
adminquickbar/admin-quickbar.php 85% from 13 tests
"AdminQuickbar" version 1.8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("adminquickbar.php" instead of "admin-quickbar.php")
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 detected7,745 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 4,701 |
PHP | 30 | 372 | 999 | 1,343 |
Sass | 10 | 171 | 2 | 878 |
JavaScript | 7 | 193 | 214 | 786 |
PO File | 1 | 12 | 0 | 36 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 7 | 8.24% |
▷ Public methods | 72 | 84.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 15.29% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin