100% admin-bar-plugin-switcher

Code Review | Admin Bar Plugin Switcher

WordPress plugin Admin Bar Plugin Switcher scored 100% from 54 tests.

About plugin

  • Plugin page: admin-bar-plugin-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 5.9.2
  • First release: Jul 17, 2015
  • Latest release: Feb 24, 2019
  • Number of updates: 12
  • Update frequency: every 110.5 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,340 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼295.64ms] Passed 4 tests

Analyzing server-side resources used by Admin Bar Plugin Switcher
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0557.45 ▲8.56
Dashboard /wp-admin3.43 ▲0.0331.83 ▼3.15
Posts /wp-admin/edit.php3.66 ▲0.0237.18 ▼1.42
Add New Post /wp-admin/post-new.php6.90 ▼0.0797.79 ▼1,174.83
Media Library /wp-admin/upload.php3.31 ▲0.0128.79 ▼3.16

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Bar Plugin Switcher: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲7815.98 ▲0.045.65 ▼1.422.19 ▼0.33
Dashboard /wp-admin2,915 ▲606.13 ▼0.08117.52 ▼16.00155.46 ▼8.88
Posts /wp-admin/edit.php2,711 ▲173.24 ▲0.0162.38 ▼2.60133.17 ▼7.61
Add New Post /wp-admin/post-new.php1,728 ▼4521.76 ▼0.30464.42 ▲13.99158.39 ▼1.05
Media Library /wp-admin/upload.php1,718 ▲205.54 ▲0.02138.87 ▼6.50185.41 ▼8.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: activation, admin bar, plugins, deactivation

admin-bar-plugin-switcher/admin-bar-plugin-switcher.php 92% from 13 tests

The main file in "Admin Bar Plugin Switcher" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin164 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP139113164

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods450.00%
▷ Protected methods450.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin