84% responsive-adminbar

Code Review | Responsive adminbar

WordPress plugin Responsive adminbar scored84%from 54 tests.

About plugin

  • Plugin page: responsive-adminbar
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 0.1.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 13, 2012
  • Latest release: Sep 14, 2012
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: skodnik (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,424 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
Install script ran successfully

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

An overview of server-side resources used by Responsive adminbar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.75 ▲0.19
Dashboard /wp-admin3.32 ▼0.0350.66 ▼10.99
Posts /wp-admin/edit.php3.37 ▲0.0151.50 ▼3.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.53 ▼19.38
Media Library /wp-admin/upload.php3.24 ▲0.0138.17 ▲3.04

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Responsive adminbar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.42 ▲0.071.83 ▲0.0242.12 ▲2.56
Dashboard /wp-admin2,197 ▲235.61 ▲0.0791.36 ▼5.0438.51 ▼3.02
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0139.71 ▼2.6137.88 ▲0.45
Add New Post /wp-admin/post-new.php1,537 ▲918.20 ▼4.94622.83 ▼52.9771.07 ▲5.81
Media Library /wp-admin/upload.php1,405 ▲54.17 ▼0.0196.61 ▼11.2445.51 ▼7.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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 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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-adminbar/responsive-adminbar.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: adminbar, responsive

responsive-adminbar/responsive-adminbar.php Passed 13 tests

The entry point to "Responsive adminbar" version 0.1.0 is a PHP file that has certain tags in its header comment area
119 characters long description:
For greater ease of use WP when you change the width of the browser plug-in replaces the text links adminbar the icons.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin39 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP122539

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png45.53KB17.71KB▼ 61.11%