68% boom-fest

Code Review | Boom Fest

WordPress plugin Boom Fest scored68%from 54 tests.

About plugin

  • Plugin page: boom-fest
  • Plugin version: 2.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.0
  • WordPress version: 6.3.1
  • First release: Mar 7, 2023
  • Latest release: Apr 15, 2023
  • Number of updates: 12
  • Update frequency: every 3.3 days
  • Top authors: ibartsltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /271 total downloads

Benchmarks

Plugin footprint 65% 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.10MB] [CPU: ▼9.01ms] Passed 4 tests

Analyzing server-side resources used by Boom Fest
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.20 ▲3.61
Dashboard /wp-admin3.41 ▲0.0746.58 ▼12.88
Posts /wp-admin/edit.php3.52 ▲0.1748.33 ▼0.30
Add New Post /wp-admin/post-new.php6.01 ▲0.1384.29 ▼26.48
Media Library /wp-admin/upload.php3.33 ▲0.1136.23 ▲4.76

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 80 new files
Database: 2 new tables, 6 new options
New tables
wp_boom_festive_data
wp_boom_festive_activated
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Boom Fest
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲19814.11 ▼0.697.40 ▲5.7140.93 ▲0.30
Dashboard /wp-admin2,236 ▲505.33 ▲0.34103.53 ▼2.4731.54 ▼14.53
Posts /wp-admin/edit.php2,122 ▲362.39 ▲0.4038.23 ▲3.0833.88 ▼3.46
Add New Post /wp-admin/post-new.php1,700 ▲18122.74 ▼0.34678.04 ▲45.1035.75 ▼15.83
Media Library /wp-admin/upload.php1,491 ▲1064.46 ▲0.2496.96 ▼6.6240.09 ▼3.32

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/boom-fest/public/partials/boom-fest-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/boom-fest/admin/partials/boom-fest-admin-display.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/boom-fest/definitions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: falling snow, spring, snow effect, halloween, new year...

boom-fest/boom-fest.php Passed 13 tests

The primary PHP file in "Boom Fest" version 2.1.0 is used by WordPress to initiate all plugin functionality
50 characters long description:
A layout customization plugin for festival season.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,573 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS167117790
PHP13141555617
JavaScript1576166

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity11.43
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
22 compressed PNG files occupy 12.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
uploads/balloon-golden.png32.49KB10.13KB▼ 68.83%
uploads/christmas-hat.png1,168.52KB1,295.85KB0.00%
uploads/flower-cover-green.png71.71KB75.77KB0.00%
admin/css/chosen-sprite.png0.53KB0.88KB0.00%
uploads/flower-cover.png117.81KB124.35KB0.00%