83% wp-minimize-admin-bar

Code Review | WP Minimize Admin Bar

WordPress plugin WP Minimize Admin Bar scored83%from 54 tests.

About plugin

  • Plugin page: wp-minimize-admin...
  • Plugin version: 0.1a...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Nov 30, 2015
  • Number of updates: 3
  • Update frequency: every 10.7 days
  • Top authors: plasticbrain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /1,543 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by WP Minimize Admin Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.01 ▲0.78
Dashboard /wp-admin3.31 ▼0.0449.92 ▼13.98
Posts /wp-admin/edit.php3.36 ▲0.0044.52 ▼3.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.33 ▼18.32
Media Library /wp-admin/upload.php3.23 ▲0.0036.21 ▲1.84

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Minimize Admin Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10413.50 ▼0.8515.90 ▲14.3843.42 ▲7.02
Dashboard /wp-admin2,200 ▲235.65 ▼0.0188.55 ▲5.2046.67 ▲1.82
Posts /wp-admin/edit.php2,102 ▲22.03 ▼0.0035.82 ▼4.5830.71 ▼7.13
Add New Post /wp-admin/post-new.php1,528 ▲223.18 ▲0.14677.74 ▲32.9558.33 ▲12.15
Media Library /wp-admin/upload.php1,405 ▲24.12 ▼0.04102.46 ▼2.0347.46 ▲1.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-minimize-admin-bar/minimize-admin-bar.php

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (How the minimized Admin Bar looks), #2 (What happens when the minimized icon is clicked)
You can look at the official readme.txt

wp-minimize-admin-bar/minimize-admin-bar.php 85% from 13 tests

The main file in "WP Minimize Admin Bar" v. 0.1a... serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "0.1a...")
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-minimize-admin-bar.php" instead of "minimize-admin-bar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected46 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16421
PHP151815
CSS10010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.09KB6.07KB▼ 56.92%