94% wp-tidy-admin-bar

Code Review | WP Tidy Admin Bar

WordPress plugin WP Tidy Admin Bar scored 94% from 54 tests.

About plugin

  • Plugin page: wp-tidy-admin-bar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 5.8.1
  • First release: Nov 5, 2012
  • Latest release: Oct 31, 2013
  • Number of updates: 10
  • Update frequency: every 36.2 days
  • Top authors: stormuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 722 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by WP Tidy Admin Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1339.09 ▲18.13
Dashboard /wp-admin3.08 ▲0.0345.83 ▼5.38
Posts /wp-admin/edit.php3.13 ▲0.0345.62 ▲4.48
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.30 ▼568.82
Media Library /wp-admin/upload.php3.03 ▲0.0235.07 ▼4.53
Tidy Admin Bar /wp-admin/options-general.php?page=wptidyadminbaroptions2.9933.92

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Tidy Admin Bar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.92 ▼0.029.60 ▲0.1249.67 ▼1.56
Dashboard /wp-admin2,975 ▲445.91 ▼0.05140.86 ▼21.97111.73 ▼6.99
Posts /wp-admin/edit.php2,744 ▲52.71 ▼0.0063.65 ▼3.8881.99 ▼10.08
Add New Post /wp-admin/post-new.php1,879 ▲29819.13 ▼1.11369.00 ▼89.54108.51 ▼11.53
Media Library /wp-admin/upload.php1,812 ▼15.02 ▼0.04140.35 ▼7.28118.93 ▼0.78
Tidy Admin Bar /wp-admin/options-general.php?page=wptidyadminbaroptions1,1882.0855.9174.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-tidy-admin-bar/wp-tidy-admin-bar.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-tidy-admin-bar/wp-tidy-admin-bar-options.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
1 plugin tags: tinymce

wp-tidy-admin-bar/wp-tidy-admin-bar.php Passed 13 tests

The main file in "WP Tidy Admin Bar" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
Simple options to tidy up the uncessary clutter in the WordPres Admin Bar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected149 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2236895
Markdown118054

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 images were found in this plugin