74% cj-remove-wp-toolbar

Code Review | CJ Remove WP Toolbar

WordPress plugin CJ Remove WP Toolbar scored74%from 54 tests.

About plugin

  • Plugin page: cj-remove-wp-toolbar
  • Plugin version: 3.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.3.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2012
  • Latest release: Mar 2, 2012
  • Number of updates: 15
  • Update frequency: every 1.6 days
  • Top authors: shibulijack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,737 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.93MB] [CPU: ▼51.60ms] Passed 4 tests

Server-side resources used by CJ Remove WP Toolbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.404.43 ▼33.15
Dashboard /wp-admin2.07 ▼1.236.88 ▼42.26
Posts /wp-admin/edit.php2.08 ▼1.285.39 ▼40.71
Add New Post /wp-admin/post-new.php2.07 ▼3.815.72 ▼90.28
Media Library /wp-admin/upload.php2.07 ▼1.155.99 ▼31.31

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CJ Remove WP Toolbar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,610 ▼12513.14 ▼1.231.45 ▼0.1844.46 ▼4.32
Dashboard /wp-admin2,146 ▼455.84 ▲0.9396.02 ▼6.2336.40 ▼3.99
Posts /wp-admin/edit.php2,044 ▼452.00 ▲0.0033.29 ▼7.4130.76 ▼6.58
Add New Post /wp-admin/post-new.php1,526 ▲923.28 ▲5.42658.90 ▼20.0828.49 ▼20.91
Media Library /wp-admin/upload.php1,331 ▼604.16 ▼0.18102.71 ▲5.1545.62 ▲0.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the admin-bar handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cj-remove-wp-toolbar/cj-remove-wp-toolbar.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Dashboard Before Installation), #2 (Dashboard After Installation), #3 (Front end before installation), #4 (Front end after installation)
The official readme.txt is a good inspiration

cj-remove-wp-toolbar/cj-remove-wp-toolbar.php 92% from 13 tests

"CJ Remove WP Toolbar" version 3.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 194 characters long)

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
Success! There were no dangerous files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162029

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin