78% adminquickbar

Code Review | AdminQuickbar

WordPress plugin AdminQuickbar scored 78% from 54 tests.

About plugin

  • Plugin page: adminquickbar
  • Plugin version: 1.8.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.9.2
  • First release: Dec 13, 2017
  • Latest release: Jan 14, 2021
  • Number of updates: 37
  • Update frequency: every 30.5 days
  • Top authors: rtowebsites (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 2,596 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.3872.04 ▲18.87
Dashboard /wp-admin3.73 ▲0.3249.44 ▲16.50
Posts /wp-admin/edit.php3.91 ▲0.2757.63 ▲19.88
Add New Post /wp-admin/post-new.php7.14 ▲0.17115.81 ▼1,136.57
Media Library /wp-admin/upload.php3.70 ▲0.4036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,064 ▲1,32016.49 ▲0.8717.45 ▲11.372.22 ▼0.02
Dashboard /wp-admin3,501 ▲6466.55 ▲0.45118.89 ▼15.25172.03 ▲12.19
Posts /wp-admin/edit.php3,294 ▲6373.05 ▼0.1970.57 ▲7.50149.82 ▲13.63
Add New Post /wp-admin/post-new.php2,096 ▲43521.41 ▲4.83405.82 ▲1.01167.96 ▲11.51
Media Library /wp-admin/upload.php2,304 ▲6035.65 ▲0.14142.56 ▼7.00190.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

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:
LanguageFilesBlank linesComment linesLines of code
JSON4004,701
PHP303729991,343
Sass101712878
JavaScript7193214786
PO File112036
CSS1001

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 code0.31
Average class complexity10.14
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods85
▷ Static methods78.24%
▷ Public methods7284.71%
▷ Protected methods00.00%
▷ Private methods1315.29%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants7
▷ Global constants342.86%
▷ Class constants457.14%
▷ Public constants4100.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