84% wp-extend-toolbar

Code Review | WP Extend Toolbar

WordPress plugin WP Extend Toolbar scored84%from 54 tests.

About plugin

  • Plugin page: wp-extend-toolbar
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 11, 2015
  • Latest release: Jul 20, 2021
  • Number of updates: 45
  • Update frequency: every 48.9 days
  • Top authors: michouse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,852 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by WP Extend Toolbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.09 ▼0.05
Dashboard /wp-admin3.32 ▲0.0244.43 ▼3.68
Posts /wp-admin/edit.php3.38 ▲0.0246.23 ▼0.68
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.38 ▼1.13
Media Library /wp-admin/upload.php3.25 ▲0.0236.30 ▲4.29

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP Extend Toolbar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,130 ▲35913.48 ▼0.8710.28 ▲8.6543.99 ▲3.58
Dashboard /wp-admin2,195 ▲185.56 ▼0.0790.03 ▼2.0441.01 ▼1.11
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0141.34 ▲6.4536.02 ▼2.64
Add New Post /wp-admin/post-new.php1,526 ▼523.11 ▲0.04654.97 ▼13.6159.31 ▲4.81
Media Library /wp-admin/upload.php1,394 ▼64.18 ▲0.0194.76 ▼4.7140.16 ▼4.41

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-extend-toolbar/wp-extend-toolbar.php:117

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: admin bar, custom admin bar, tool bar, custom tool bar, plugin

wp-extend-toolbar/wp-extend-toolbar.php 92% from 13 tests

Analyzing the main PHP file in "WP Extend Toolbar" version 2.1.0
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/language")

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 detected189 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1321078
JavaScript113258
CSS15053

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 1.11MB with 0.63MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png1,133.31KB414.86KB▼ 63.39%
img/btn-open.png3.04KB1.49KB▼ 50.93%
img/btn-close.png3.00KB1.35KB▼ 55.07%