78% adminquickbar

Code Review | AdminQuickbar

WordPress plugin AdminQuickbar scored78%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: 6.3.1
  • 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

100+ active /2,948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▲11.27ms] Passed 4 tests

Analyzing server-side resources used by AdminQuickbar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1161.48 ▲21.18
Dashboard /wp-admin3.37 ▲0.0265.21 ▲0.22
Posts /wp-admin/edit.php3.46 ▲0.1067.53 ▲14.58
Add New Post /wp-admin/post-new.php5.96 ▲0.07102.27 ▲9.08
Media Library /wp-admin/upload.php3.31 ▲0.0860.80 ▲23.59

Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
category_children
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for AdminQuickbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,643 ▲89713.81 ▼0.449.33 ▲7.0439.89 ▼1.30
Dashboard /wp-admin2,596 ▲4085.04 ▲0.17110.03 ▼6.1144.95 ▲3.88
Posts /wp-admin/edit.php2,479 ▲3902.29 ▲0.2444.59 ▲4.5343.57 ▲7.60
Add New Post /wp-admin/post-new.php1,973 ▲43822.96 ▼0.28691.29 ▲20.3067.61 ▲14.46
Media Library /wp-admin/upload.php1,772 ▲3814.37 ▲0.14100.32 ▼6.7644.11 ▼3.85

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • category_children
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 fix the following
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php
    • > /wp-content/plugins/adminquickbar/Lib/partials/loop-post-types.php
    • > /wp-content/plugins/adminquickbar/Lib/partials/language-flag.php
    • > /wp-content/plugins/adminquickbar/Lib/partials/thumbnail.php
    • > /wp-content/plugins/adminquickbar/Lib/partials/settings.php
    • > /wp-content/plugins/adminquickbar/Lib/partials/toolbar-item.php
  • 41× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: postTypeInfo in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 31
    • > PHP Notice
      Undefined variable: style in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 18
    • > PHP Notice
      Undefined variable: thumb in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 23
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/adminquickbar/Lib/partials/settings.php on line 7
    • > PHP Notice
      Undefined variable: flagUrl in wp-content/plugins/adminquickbar/Lib/partials/language-flag.php on line 9
    • > PHP Notice
      Undefined variable: languageFlag in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 26
    • > PHP Notice
      Undefined variable: postTypeInfo in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 37
    • > PHP Notice
      Undefined variable: contextMenuData in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 19
    • > PHP Notice
      Trying to get property 'label' of non-object in wp-content/plugins/adminquickbar/Lib/partials/loop-post-types.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/adminquickbar/Lib/partials/loop-posts.php on line 31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: post, elementor, rtode, post list, rto...

adminquickbar/admin-quickbar.php 85% from 13 tests

The principal PHP file in "AdminQuickbar" v. 1.8.0 is loaded by WordPress automatically on each request
Please take the time 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 | An overview of files in this plugin; executable files are not allowed
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

Cyclomatic complexity and code structure are the fingerprint of this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin