100% adminbar-no-customizer

Code Review | Adminbar No Customizer

WordPress plugin Adminbar No Customizer scored 100% from 54 tests.

About plugin

  • Plugin page: adminbar-no-custo...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 5.9.2
  • First release: Dec 18, 2015
  • Latest release: Jan 22, 2018
  • Number of updates: 6
  • Update frequency: every 127.7 days
  • Top authors: jrf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,367 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼285.45ms] Passed 4 tests

This is a short check of server-side resources used by Adminbar No Customizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0162.65 ▲12.12
Dashboard /wp-admin3.41 ▲0.0063.98 ▲29.62
Posts /wp-admin/edit.php3.64 ▲0.0042.73 ▲3.82
Add New Post /wp-admin/post-new.php6.91 ▼0.0995.69 ▼1,155.24
Media Library /wp-admin/upload.php3.30 ▲0.0022.91 ▼2.51

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Adminbar No Customizer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,814 ▲6016.21 ▲0.646.31 ▲0.632.84 ▲0.16
Dashboard /wp-admin2,895 ▲446.10 ▼0.07120.09 ▼16.03158.31 ▼4.41
Posts /wp-admin/edit.php2,673 ▼153.24 ▼0.0168.29 ▲4.15173.26 ▲37.72
Add New Post /wp-admin/post-new.php1,661 ▼9916.97 ▼5.26407.00 ▼31.21153.97 ▼6.94
Media Library /wp-admin/upload.php1,701 ▲95.51 ▼0.02137.51 ▼4.04185.30 ▲3.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
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 a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: customizer, adminbar, admin bar

adminbar-no-customizer/adminbar-no-customizer.php Passed 13 tests

The main PHP script in "Adminbar No Customizer" version 1.0.1 is automatically included on every request by WordPress
90 characters long description:
Moves the Customizer link from the Adminbar top level to be a subitem under the site-menu.

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
Everything looks great! No dangerous files found in this plugin24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP253124

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin