89% remove-admin-toolbar

Code Review | Remove Admin Toolbar

WordPress plugin Remove Admin Toolbar scored89%from 54 tests.

About plugin

  • Plugin page: remove-admin-toolbar
  • Plugin version: 0.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Dec 22, 2021
  • Number of updates: 43
  • Update frequency: every 38.2 days
  • Top authors: paladin884 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /13,783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.19ms] Passed 4 tests

Server-side resources used by Remove Admin Toolbar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.13 ▼5.38
Dashboard /wp-admin3.33 ▲0.0347.99 ▼5.95
Posts /wp-admin/edit.php3.39 ▲0.0350.24 ▼4.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.79 ▼8.79
Media Library /wp-admin/upload.php3.26 ▲0.0338.10 ▲2.39
RA Toolbar /wp-admin/options-general.php?page=rat_toolbar3.2235.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Admin Toolbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.75 ▲0.471.77 ▼0.3039.44 ▼8.68
Dashboard /wp-admin2,207 ▲194.87 ▼1.03101.52 ▼9.9538.51 ▼2.68
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0239.25 ▲1.6936.31 ▲2.52
Add New Post /wp-admin/post-new.php1,536 ▲323.29 ▲0.02648.96 ▼27.2249.12 ▼9.17
Media Library /wp-admin/upload.php1,395 ▲104.24 ▲0.04112.47 ▲9.1646.01 ▼0.80
RA Toolbar /wp-admin/options-general.php?page=rat_toolbar8372.0128.6027.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
  • Screenshots: A description for screenshot #1 is missing in remove-admin-toolbar/assets to your readme.txt
You can take inspiration from this readme.txt

remove-admin-toolbar/remove-admin-toolbar.php Passed 13 tests

The entry point to "Remove Admin Toolbar" version 0.2.6 is a PHP file that has certain tags in its header comment area
60 characters long description:
Remove admin toolbar completely or partially within seconds.

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 plugin261 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43640123
Markdown113053
CSS117452
PO File15628
JavaScript1135

PHP code Passed 2 tests

An overview of 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 code1.06
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.29MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/netdesignr-blog-dark.png4.34KB2.22KB▼ 48.82%
assets/screenshot-1.png294.94KB185.73KB▼ 37.03%