89% maje-media-remove-admin-bar

Code Review | Remove/Hide Admin Toolbar

WordPress plugin Remove/Hide Admin Toolbar scored89%from 54 tests.

About plugin

  • Plugin page: maje-media-remove...
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Jul 7, 2022
  • Number of updates: 43
  • Update frequency: every 58.1 days
  • Top authors: majemedia (86.05%)purrlydigital (16.28%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /14,505 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: ▼11.29ms] Passed 4 tests

This is a short check of server-side resources used by Remove/Hide Admin Toolbar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0636.25 ▼1.69
Dashboard /wp-admin3.31 ▼0.0447.47 ▼15.08
Posts /wp-admin/edit.php3.36 ▲0.0046.25 ▼5.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.30 ▼23.12
Media Library /wp-admin/upload.php3.23 ▲0.0036.12 ▲2.98

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove/Hide Admin Toolbar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,626 ▼12014.72 ▼0.031.23 ▼0.4743.45 ▼0.40
Dashboard /wp-admin2,206 ▲184.85 ▼1.0596.01 ▼10.1936.76 ▼7.45
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0436.35 ▼5.9829.84 ▼5.91
Add New Post /wp-admin/post-new.php1,535 ▼123.13 ▼0.07627.12 ▼33.6365.73 ▲11.51
Media Library /wp-admin/upload.php1,388 ▼34.23 ▼0.0196.20 ▼5.8840.11 ▼6.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following 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-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% 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
7 plugin tags: frontend, hide, hidden, utility, admin-bar...

maje-media-remove-admin-bar/MajeMedia-WP-Remove-Admin-Bar.php 69% from 13 tests

"Remove/Hide Admin Toolbar" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("4.3" instead of "5.3")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("maje-media-remove-admin-bar.php" instead of "MajeMedia-WP-Remove-Admin-Bar.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin79 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown122059
PHP1152320

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.49MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png367.72KB164.50KB▼ 55.27%
screenshot-1.png135.12KB54.10KB▼ 59.96%