84% standout-color-boxes-and-buttons

Code Review | Standout Color Boxes and Buttons

WordPress plugin Standout Color Boxes and Buttons scored 84% from 54 tests.

About plugin

  • Plugin page: standout-color-bo...
  • Plugin version: 0.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Sep 22, 2012
  • Latest release: Aug 16, 2014
  • Number of updates: 61
  • Update frequency: every 11.4 days
  • Top authors: jp2112 (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active / 62,748 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.19MB] [CPU: ▲1.83ms] Passed 4 tests

An overview of server-side resources used by Standout Color Boxes and Buttons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1952.86 ▲11.84
Dashboard /wp-admin3.49 ▲0.1953.43 ▲8.39
Posts /wp-admin/edit.php3.61 ▲0.2551.95 ▲2.35
Add New Post /wp-admin/post-new.php6.07 ▲0.1983.39 ▼8.11
Media Library /wp-admin/upload.php3.42 ▲0.1936.53 ▲4.69
Standout Color Boxes and Buttons /wp-admin/options-general.php?page=standout-color-boxes-and-buttons3.3737.26

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Standout Color Boxes and Buttons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7214.78 ▲0.562.26 ▲0.2547.62 ▲0.68
Dashboard /wp-admin2,207 ▲155.83 ▲0.89104.51 ▼3.4749.53 ▲2.53
Posts /wp-admin/edit.php2,093 ▲12.06 ▲0.0641.65 ▼0.4740.06 ▲5.98
Add New Post /wp-admin/post-new.php1,542 ▲618.15 ▼4.90699.37 ▲7.8856.07 ▲1.08
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.03105.50 ▲4.1748.16 ▲1.76
Standout Color Boxes and Buttons /wp-admin/options-general.php?page=standout-color-boxes-and-buttons1,2132.3648.7955.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/standout-color-boxes-and-buttons/scbb.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: shortcode, color button, css, color box, button...

standout-color-boxes-and-buttons/scbb.php 92% from 13 tests

The main PHP script in "Standout Color Boxes and Buttons" version 0.7.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("standout-color-boxes-and-buttons.php" instead of "scbb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin737 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP34688686
CSS20944
JavaScript2007

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants29
▷ Global constants29100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/support.png5.03KB2.79KB▼ 44.54%
images/parameters.png3.48KB2.94KB▼ 15.45%
images/colors.png0.52KB0.27KB▼ 48.22%
images/examples.png3.78KB2.24KB▼ 40.82%
images/settings.png2.11KB2.31KB0.00%