84% big-boom-alert-bar

Code Review | Big Boom Alert Bar

WordPress plugin Big Boom Alert Bar scored84%from 54 tests.

About plugin

  • Plugin page: big-boom-alert-bar
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.0
  • WordPress version: 6.3.1
  • First release: Nov 24, 2015
  • Latest release: May 26, 2022
  • Number of updates: 19
  • Update frequency: every 125.2 days
  • Top authors: michaelhull (57.89%)bigboomdesign (47.37%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,100 total downloads


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.09MB] [CPU: ▼8.13ms] Passed 4 tests

An overview of server-side resources used by Big Boom Alert Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.19 ▼4.29
Dashboard /wp-admin3.41 ▲0.0642.62 ▼19.51
Posts /wp-admin/edit.php3.52 ▲0.1644.09 ▲0.76
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.61 ▼7.77
Media Library /wp-admin/upload.php3.33 ▲0.1033.35 ▼0.94
Alert Bar /wp-admin/options-general.php?page=albar_settings3.3632.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Big Boom Alert Bar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.30 ▼1.081.73 ▼0.0744.79 ▼0.48
Dashboard /wp-admin2,210 ▲195.78 ▼0.0796.66 ▼10.5935.86 ▼3.95
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0742.07 ▲6.5834.09 ▼1.92
Add New Post /wp-admin/post-new.php1,541 ▲2718.38 ▲0.78658.17 ▼31.7057.66 ▲0.78
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0093.30 ▼22.5541.25 ▼6.69
Alert Bar /wp-admin/options-general.php?page=albar_settings1,6497.12170.7673.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function albar_dir() in wp-content/plugins/big-boom-alert-bar/lib/class-alert-bar.php:348
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/big-boom-alert-bar/lib/class-alert-bar-options.php:554
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/big-boom-alert-bar/big-boom-alert-bar.php:53

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, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: site notification, message, alert

big-boom-alert-bar/big-boom-alert-bar.php Passed 13 tests

"Big Boom Alert Bar" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
Displays an alert message anywhere on your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin566 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity43.50
▷ Minimum class complexity37.00
▷ Maximum class complexity50.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods24100.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected