84% big-boom-initialize-wp

Code Review | Big Boom Initialize WP

WordPress plugin Big Boom Initialize WP scored 84% from 54 tests.

About plugin

  • Plugin page: big-boom-initiali...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 8, 2015
  • Latest release: May 30, 2022
  • Number of updates: 23
  • Update frequency: every 109.7 days
  • Top authors: michaelhull (82.61%)bigboomdesign (21.74%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,458 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Big Boom Initialize WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0646.46 ▲2.33
Dashboard /wp-admin3.37 ▲0.0654.26 ▲1.44
Posts /wp-admin/edit.php3.48 ▲0.1352.70 ▼1.55
Add New Post /wp-admin/post-new.php5.95 ▲0.06102.97 ▲10.21
Media Library /wp-admin/upload.php3.29 ▲0.0640.01 ▼2.31
Big Boom Initialize WP /wp-admin/tools.php?page=bbd_initialization3.2635.96

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Big Boom Initialize WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲713.33 ▲0.151.98 ▲0.1436.39 ▼11.33
Dashboard /wp-admin2,211 ▲55.82 ▼0.06104.79 ▼14.0544.55 ▲2.95
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0239.97 ▲3.6039.78 ▲7.88
Add New Post /wp-admin/post-new.php1,597 ▲6418.29 ▼4.97602.02 ▼97.2636.70 ▼19.65
Media Library /wp-admin/upload.php1,393 ▲54.25 ▲0.1296.69 ▼19.0840.74 ▼7.71
Big Boom Initialize WP /wp-admin/tools.php?page=bbd_initialization8222.0423.4230.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/big-boom-initialize-wp/bbd-initialize.php:59
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbdi_dir() in wp-content/plugins/big-boom-initialize-wp/lib/class-bbd-init.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
No tags were detected

big-boom-initialize-wp/bbd-initialize.php 92% from 13 tests

The principal PHP file in "Big Boom Initialize WP" v. 1.1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("big-boom-initialize-wp.php" instead of "bbd-initialize.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin574 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP345124336
CSS3202205
JavaScript10033

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity19.50
▷ Minimum class complexity5.00
▷ Maximum class complexity34.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods15100.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
custom-login/images/boomBack.png17.73KB7.84KB▼ 55.78%
custom-login/images/bottomBack.png1.88KB0.83KB▼ 55.57%
images/bigboomlogo.png5.66KB2.31KB▼ 59.14%