84% outstanding-bar

Code Review | Outstanding Bar

WordPress plugin Outstanding Bar scored84%from 54 tests.

About plugin

  • Plugin page: outstanding-bar
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2015
  • Latest release: Oct 25, 2015
  • Number of updates: 27
  • Update frequency: every 8.4 days
  • Top authors: wearecontrast (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Outstanding Bar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.11 ▼2.62
Dashboard /wp-admin3.33 ▼0.0150.32 ▼12.09
Posts /wp-admin/edit.php3.38 ▲0.0343.14 ▼2.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.73 ▼21.75
Media Library /wp-admin/upload.php3.25 ▲0.0334.27 ▲4.11
Outstanding Bar /wp-admin/options-general.php?page=outstanding-bar3.2230.26

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

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

Browser metrics Passed 4 tests

Outstanding Bar: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16913.61 ▼1.079.29 ▲7.5437.72 ▼5.55
Dashboard /wp-admin2,210 ▲225.90 ▲0.08112.73 ▼0.0743.22 ▼0.91
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0332.82 ▼5.4235.98 ▲4.27
Add New Post /wp-admin/post-new.php1,536 ▲1723.13 ▼0.04639.36 ▼24.5356.07 ▲0.11
Media Library /wp-admin/upload.php1,389 ▲74.19 ▼0.0395.07 ▼1.4240.79 ▼2.19
Outstanding Bar /wp-admin/options-general.php?page=outstanding-bar1,2752.5069.4329.64

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • outstandingbar_version
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outstanding-bar/options.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Contrast\\register_activation_hook() in wp-content/plugins/outstanding-bar/outstandingbar.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: newsletter, email signup, mailchimp, newsletter signup, email

outstanding-bar/outstandingbar.php 85% from 13 tests

The primary PHP file in "Outstanding Bar" version 1.1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("outstanding-bar.php" instead of "outstandingbar.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 203 characters long)

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
Good job! No executable or dangerous file extensions detected626 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP47453480
JavaScript22732136
SVG1008
CSS2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.67
▷ Minimum class complexity4.00
▷ Maximum class complexity11.00
Average method complexity1.49
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods2048.78%
▷ Protected methods00.00%
▷ Private methods2151.22%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin