10% toolbar-extras

Code Review | Toolbar Extras for Elementor & More - WordPress Admin Bar Enhanced

WordPress plugin Toolbar Extras for Elementor & More - WordPress Admin Bar Enhanced scored10%from 54 tests.

About plugin

  • Plugin page: toolbar-extras
  • Plugin version: 1.4.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Apr 3, 2018
  • Latest release: Nov 28, 2019
  • Number of updates: 94
  • Update frequency: every 6.4 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

186 reviews

Install metrics

10,000+ active /288,904 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/toolbar-extras/includes/functions-global-info.php+29
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.60MB] [CPU: ▼41.40ms] Passed 4 tests

Server-side resources used by Toolbar Extras for Elementor & More - WordPress Admin Bar Enhanced
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.37 ▼0.0915.70 ▼27.59
Dashboard /wp-admin3.41 ▲0.1028.79 ▼23.63
Posts /wp-admin/edit.php3.41 ▲0.0519.06 ▼31.60
Add New Post /wp-admin/post-new.php3.41 ▼2.4820.75 ▼82.79
Media Library /wp-admin/upload.php3.41 ▲0.1820.95 ▼14.66
Add New /wp-admin/post-new.php?post_type=wp_block3.4118.16
Blocks /wp-admin/edit.php?post_type=wp_block3.4121.64
Toolbar Extras /wp-admin/options-general.php?page=toolbar-extras3.4117.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 664 new files
Database: no new tables, 11 new options
New WordPress options
tbex-options-development
tbex-options-general
tbex-plugin-version
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
tbex-plugin-old-setup
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for Toolbar Extras for Elementor & More - WordPress Admin Bar Enhanced
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,504 ▲1,71813.24 ▼1.162.14 ▲0.1330.48 ▼13.37
Dashboard /wp-admin3,136 ▲9565.83 ▼0.02105.74 ▲5.4682.12 ▲38.09
Posts /wp-admin/edit.php2,902 ▲8052.20 ▲0.1845.68 ▲7.7234.13 ▲0.27
Add New Post /wp-admin/post-new.php2,313 ▲78723.23 ▲0.11636.72 ▼62.5753.07 ▼7.59
Media Library /wp-admin/upload.php2,217 ▲8204.33 ▲0.12115.52 ▼1.9244.60 ▼3.52
Add New /wp-admin/post-new.php?post_type=wp_block6,98822.46939.7339.24
Blocks /wp-admin/edit.php?post_type=wp_block1,9296.6075.4728.44
Toolbar Extras /wp-admin/options-general.php?page=toolbar-extras3,3962.6260.1364.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/toolbar-extras/includes/admin/tbex-addons.php+96
    Array and string offset access syntax with curly braces is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 26 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=toolbar-extras
    • > Deprecated in wp-content/plugins/toolbar-extras/includes/admin/tbex-addons.php+97
    Array and string offset access syntax with curly braces is deprecated
    • > GET request to /wp-admin/options-general.php?page=toolbar-extras
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 593× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/toolbar-extras/includes/elementor-addons/items-elements-plus.php
    • > /wp-content/plugins/toolbar-extras/includes/plugins/items-easy-updates-manager.php
    • > /wp-content/plugins/toolbar-extras/includes/block-editor-addons/items-ultimate-blocks.php
    • > /wp-content/plugins/toolbar-extras/includes/elementor-official/items-layers-for-elementor.php
    • > /wp-content/plugins/toolbar-extras/includes/plugins/items-edd.php
    • > /wp-content/plugins/toolbar-extras/includes/plugins/items-bsf-aiosrs.php
    • > /wp-content/plugins/toolbar-extras/includes/elementor-addons/items-total-recipe-generator.php
    • > /wp-content/plugins/toolbar-extras/includes/plugins-genesis/items-genesis-simple-edits.php
    • > /wp-content/plugins/toolbar-extras/includes/admin/views/settings-tab-general.php
    • > /wp-content/plugins/toolbar-extras/includes/elementor-addons/items-massive-addons-for-elementor.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

toolbar-extras/toolbar-extras.php 92% from 13 tests

"Toolbar Extras for Elementor & More - WordPress Admin Bar Enhanced" version 1.4.9'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 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin98,721 lines of code in 628 files:
LanguageFilesBlank linesComment linesLines of code
PHP59918,93325,70578,187
PO File27,05916,01215,997
Markdown362402,563
CSS123661221,459
JavaScript10220312472
JSON10022
SVG10121

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity26.21
▷ Minimum class complexity2.00
▷ Maximum class complexity90.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods112
▷ Static methods4136.61%
▷ Public methods9685.71%
▷ Protected methods00.00%
▷ Private methods1614.29%
Functions1,451
▷ Named functions1,45099.93%
▷ Anonymous functions10.07%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/classes/ddwlib-plir/deckerweb-plugins-logo.png15.80KB6.20KB▼ 60.78%
assets/images/tbex-icon.png63.41KB15.36KB▼ 75.78%