72% wp-all-in-one-admin-bar

Code Review | WordPress All In One Admin Bar

WordPress plugin WordPress All In One Admin Bar scored72%from 54 tests.

About plugin

  • Plugin page: wp-all-in-one-adm...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 8, 2014
  • Latest release: Jul 11, 2014
  • Number of updates: 43
  • Update frequency: every 0.9 days
  • Top authors: codebunny (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /8,497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼3.42ms] Passed 4 tests

Server-side resources used by WordPress All In One Admin Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2446.81 ▲7.79
Dashboard /wp-admin3.76 ▲0.4254.15 ▼8.31
Posts /wp-admin/edit.php3.81 ▲0.4651.31 ▲1.46
Add New Post /wp-admin/post-new.php6.28 ▲0.3994.92 ▼7.77
Media Library /wp-admin/upload.php3.62 ▲0.3938.38 ▲0.94
WPAIO Adminbar /wp-admin/options-general.php?page=wp-all-in-one-admin-bar4.0835.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
wpaioab_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress All In One Admin Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲11513.84 ▼0.519.13 ▲7.2042.13 ▼1.26
Dashboard /wp-admin2,196 ▲165.62 ▼0.2694.86 ▲0.6144.19 ▼0.67
Posts /wp-admin/edit.php2,104 ▲11.99 ▲0.0036.98 ▼5.6132.03 ▼6.42
Add New Post /wp-admin/post-new.php1,540 ▲323.29 ▲4.98662.00 ▲3.3162.43 ▼0.97
Media Library /wp-admin/upload.php1,404 ▲74.23 ▲0.07100.14 ▼4.9047.72 ▲4.05
WPAIO Adminbar /wp-admin/options-general.php?page=wp-all-in-one-admin-bar6,4433.71181.8677.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • wpaioab_settings
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-all-in-one-admin-bar
    • > Deprecated in wp-content/plugins/wp-all-in-one-admin-bar/admin/includes/class-wordpress-all-in-one-adminbar-custom-menu.php+137
    The each() function is deprecated. This message will be suppressed on further calls

SRP 50% 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-all-in-one-admin-bar/admin/views/admin.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wp-all-in-one-admin-bar
    • > Network (severe)
    wp-content/plugins/wp-all-in-one-admin-bar/admin/assets/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=wp-all-in-one-admin-bar
    • > Network (severe)
    wp-content/plugins/wp-all-in-one-admin-bar/admin/assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=wp-all-in-one-admin-bar
    • > Network (severe)
    wp-content/plugins/wp-all-in-one-admin-bar/admin/assets/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=wp-all-in-one-admin-bar
    • > Network (severe)
    wp-content/plugins/wp-all-in-one-admin-bar/admin/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-all-in-one-admin-bar === )
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

wp-all-in-one-admin-bar/wp-all-in-one-admin-bar.php 92% from 13 tests

"WordPress All In One Admin Bar" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,900 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP11978742,810
CSS285351,275
JavaScript917229438
PO File1177191377

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity43.00
▷ Minimum class complexity2.00
▷ Maximum class complexity93.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods95
▷ Static methods1212.63%
▷ Public methods6871.58%
▷ Protected methods00.00%
▷ Private methods2728.42%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin