100% adminbar-remover

Code Review | AdminBar Remover

WordPress plugin AdminBar Remover scored 100% from 54 tests.

About plugin

  • Plugin page: adminbar-remover
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.5.2
  • WordPress version: 5.8.1
  • First release: May 27, 2016
  • Latest release: May 26, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sujin2f (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 899 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼141.48ms] Passed 4 tests

Analyzing server-side resources used by AdminBar Remover
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1343.95 ▲18.80
Dashboard /wp-admin3.07 ▲0.0147.63 ▼0.11
Posts /wp-admin/edit.php3.12 ▲0.0145.84 ▼4.04
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.38 ▼562.06
Media Library /wp-admin/upload.php3.01 ▲0.0137.94 ▲0.30

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for AdminBar Remover
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲19016.65 ▲1.2114.18 ▲4.8048.72 ▼3.42
Dashboard /wp-admin2,970 ▲365.88 ▼0.06143.87 ▼7.08110.63 ▼8.96
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0172.14 ▲3.4593.20 ▲2.89
Add New Post /wp-admin/post-new.php1,683 ▲1118.77 ▼0.31385.69 ▼13.67115.16 ▼3.46
Media Library /wp-admin/upload.php1,810 ▼05.01 ▼0.09170.42 ▲9.51129.16 ▲1.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: management, bar, admin

adminbar-remover/adminbar-remover.php 92% from 13 tests

Analyzing the main PHP file in "AdminBar Remover" version 1.0.0
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected99 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3183160
JavaScript111739

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
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
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods266.67%
▷ Protected methods00.00%
▷ Private methods133.33%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants5100.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