73% boostbox

Code Review | BoostBox

WordPress plugin BoostBox scored73%from 54 tests.

About plugin

  • Plugin page: boostbox
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Aug 1, 2022
  • Latest release: Aug 1, 2022
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: deviodigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /169 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
Installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▲0.59ms] Passed 4 tests

An overview of server-side resources used by BoostBox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2239.17 ▲1.17
Dashboard /wp-admin3.61 ▲0.2655.74 ▼4.64
Posts /wp-admin/edit.php3.66 ▲0.3049.14 ▼0.10
Add New Post /wp-admin/post-new.php6.19 ▲0.3093.90 ▲5.92
Media Library /wp-admin/upload.php3.44 ▲0.2238.80 ▲6.09
All Popups /wp-admin/edit.php?post_type=boostbox_popups3.5841.48
Settings /wp-admin/edit.php?post_type=boostbox_popups&page=settings3.4537.63
Add New /wp-admin/post-new.php?post_type=boostbox_popups6.1779.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
boostbox_general
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for BoostBox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,126 ▲38015.58 ▲1.207.08 ▲5.4145.62 ▲6.03
Dashboard /wp-admin2,416 ▲2256.67 ▲1.78129.24 ▲27.7746.96 ▲8.76
Posts /wp-admin/edit.php2,323 ▲2343.54 ▲1.4950.35 ▲15.7533.11 ▲0.20
Add New Post /wp-admin/post-new.php6,458 ▲4,92527.80 ▲4.84928.11 ▲337.9244.92 ▼3.06
Media Library /wp-admin/upload.php1,459 ▲774.31 ▲0.1192.29 ▼12.5345.49 ▲1.25
All Popups /wp-admin/edit.php?post_type=boostbox_popups1,2903.5948.2727.36
Settings /wp-admin/edit.php?post_type=boostbox_popups&page=settings1,1253.6151.7451.00
Add New /wp-admin/post-new.php?post_type=boostbox_popups1,54316.98838.4630.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • boostbox_general
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/boostbox/public/partials/boostbox-public-display.php
    • > /wp-content/plugins/boostbox/admin/partials/boostbox-admin-display.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/boostbox/admin/boostbox-admin-settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/boostbox/admin/boostbox-metaboxes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boostbox/admin/metaboxes/boostbox-popup-settings.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/boostbox/admin/class-boostbox-admin-settings.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boostbox/public/boostbox-popups.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/boostbox/boostbox.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/boostbox/uninstall.php:31

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=boostbox_popups
    • > Network (severe)
    js/chart.js?ver=1.0.0 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: modal, popup, marketing, lead-generation, exit-intent

boostbox/boostbox.php Passed 13 tests

"BoostBox" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
Build popups for lead generation, content promotion and more using the Gutenberg editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,988 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP193071,062968
CSS420210966
JavaScript3112540
Markdown18014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.88
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods23.64%
▷ Public methods5090.91%
▷ Protected methods00.00%
▷ Private methods59.09%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png9.00KB7.27KB▼ 19.21%