84% toolbar-extras-oxygen

Code Review | Toolbar Extras for Oxygen Builder - Power Up Your Admin Bar

WordPress plugin Toolbar Extras for Oxygen Builder - Power Up Your Admin Bar scored84%from 54 tests.

About plugin

  • Plugin page: toolbar-extras-ox...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Apr 1, 2019
  • Latest release: Nov 13, 2019
  • Number of updates: 15
  • Update frequency: every 15.3 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /11,910 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.59ms] Passed 4 tests

An overview of server-side resources used by Toolbar Extras for Oxygen Builder - Power Up Your Admin Bar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.16 ▼9.86
Dashboard /wp-admin3.40 ▲0.0946.63 ▼2.80
Posts /wp-admin/edit.php3.52 ▲0.1649.93 ▲2.77
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.23 ▼8.15
Media Library /wp-admin/upload.php3.32 ▲0.0938.20 ▲2.44

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 8 new options
New WordPress options
tbexob-addon-version
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
tbex-options-oxygen
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Toolbar Extras for Oxygen Builder - Power Up Your Admin Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.52 ▼1.231.62 ▼0.4130.49 ▼8.16
Dashboard /wp-admin2,228 ▲375.89 ▲0.84105.41 ▼10.0146.51 ▲1.03
Posts /wp-admin/edit.php2,116 ▲302.03 ▼0.0339.44 ▼0.4344.86 ▲5.53
Add New Post /wp-admin/post-new.php1,546 ▲1223.04 ▼0.14664.78 ▲55.4952.92 ▼2.32
Media Library /wp-admin/upload.php1,410 ▲194.23 ▲0.0696.26 ▼4.1146.05 ▲3.03

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 24× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/toolbar-extras-oxygen/includes/items-plugins-oxygen-addons.php
    • > /wp-content/plugins/toolbar-extras-oxygen/includes/oxygen-official/items-oxygen-core.php
    • > /wp-content/plugins/toolbar-extras-oxygen/includes/oxygen-official/items-oxygen-pages.php
    • > /wp-content/plugins/toolbar-extras-oxygen/toolbar-extras-oxygen.php
    • > /wp-content/plugins/toolbar-extras-oxygen/includes/functions-global.php
    • > /wp-content/plugins/toolbar-extras-oxygen/uninstall.php
    • > /wp-content/plugins/toolbar-extras-oxygen/includes/oxygen-addons/items-oxygen-edd-support.php
    • > /wp-content/plugins/toolbar-extras-oxygen/includes/functions-conditionals.php
    • > /wp-content/plugins/toolbar-extras-oxygen/includes/oxygen-official/oxygen-resources.php
    • > /wp-content/plugins/toolbar-extras-oxygen/includes/admin/admin-extras.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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: website, site builder, oxygen, ddwtoolbar, page builder...

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

This is the main PHP file of "Toolbar Extras for Oxygen Builder - Power Up Your Admin Bar" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)

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
There were no executable files found in this plugin5,704 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP251,3181,9783,771
PO File26411,1361,463
Markdown32090373
CSS117955
JSON10022
JavaScript14510
SVG10110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions140
▷ Named functions140100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin