90% adminbar-no-customizer

Code Review | Adminbar No Customizer

WordPress plugin Adminbar No Customizer scored90%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: 6.3.1
  • 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

2 reviews

Install metrics

10+ active /1,655 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Adminbar No Customizer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.62 ▼2.51
Dashboard /wp-admin3.31 ▲0.0047.07 ▼6.56
Posts /wp-admin/edit.php3.36 ▲0.0043.67 ▼2.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.29 ▼12.18
Media Library /wp-admin/upload.php3.23 ▲0.0033.28 ▲0.07

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Adminbar No Customizer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7813.23 ▼1.121.77 ▲0.0237.59 ▼5.47
Dashboard /wp-admin2,206 ▲185.85 ▼0.01102.14 ▲2.0240.82 ▼0.07
Posts /wp-admin/edit.php2,086 ▼01.99 ▼0.0434.74 ▼3.5932.89 ▼0.12
Add New Post /wp-admin/post-new.php1,514 ▼517.38 ▼6.10679.68 ▲26.8358.32 ▲2.56
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0496.44 ▼14.6640.87 ▼7.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: admin bar, customizer, adminbar

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

"Adminbar No Customizer" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 | A short review of files and their extensions; it is not recommended to include executable files
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

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected