84% toolbar-extras-mainwp

Code Review | Toolbar Extras for MainWP Dashboard - Manage WordPress Websites Even Faster

WordPress plugin Toolbar Extras for MainWP Dashboard - Manage WordPress Websites Even Faster scored84%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /8,930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.63ms] Passed 4 tests

This is a short check of server-side resources used by Toolbar Extras for MainWP Dashboard - Manage WordPress Websites Even Faster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.34 ▼0.92
Dashboard /wp-admin3.33 ▲0.0245.84 ▼4.76
Posts /wp-admin/edit.php3.38 ▲0.0248.67 ▼2.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.43 ▼1.95
Media Library /wp-admin/upload.php3.25 ▲0.0239.86 ▲4.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
tbex-options-mainwp
tbexmwp-addon-version
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Toolbar Extras for MainWP Dashboard - Manage WordPress Websites Even Faster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.19 ▼1.161.60 ▼0.1329.78 ▼11.05
Dashboard /wp-admin2,228 ▲405.81 ▼0.00110.18 ▲1.1250.52 ▲7.97
Posts /wp-admin/edit.php2,113 ▲212.03 ▲0.0340.55 ▼1.4145.12 ▲6.89
Add New Post /wp-admin/post-new.php1,532 ▼217.64 ▼5.49664.71 ▼2.8154.20 ▼4.64
Media Library /wp-admin/upload.php1,407 ▲224.19 ▼0.03100.79 ▼0.1346.78 ▲4.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 51× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/extensions/items-google-analytics.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/functions-global.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/string-switcher.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/admin/tbexmwp-settings.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/extensions/items-yoast-seo.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/mainwp-extensions.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/extensions/items-branding.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/admin/admin-extras.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/tbexmwp-update-settings.php
    • > /wp-content/plugins/toolbar-extras-mainwp/includes/extensions/items-file-uploader.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

"Toolbar Extras for MainWP Dashboard - Manage WordPress Websites Even Faster" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected9,034 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP521,7282,5766,674
PO File29111,4231,994
Markdown31660283
CSS291761
JSON10022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions165
▷ Named functions165100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-tbexmwp.png68.18KB16.59KB▼ 75.67%