84% rocket-fireworks

Code Review | Rocket Fireworks

WordPress plugin Rocket Fireworks scored84%from 54 tests.

About plugin

  • Plugin page: rocket-fireworks
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Nov 7, 2016
  • Latest release: Jul 5, 2022
  • Number of updates: 20
  • Update frequency: every 103.1 days
  • Top authors: shahaji9 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /14,216 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.00MB] [CPU: ▼12.77ms] Passed 4 tests

An overview of server-side resources used by Rocket Fireworks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.61 ▲2.00
Dashboard /wp-admin3.31 ▼0.0352.14 ▼19.00
Posts /wp-admin/edit.php3.36 ▲0.0148.84 ▼10.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.52 ▼23.86
Media Library /wp-admin/upload.php3.23 ▲0.0139.98 ▲2.69

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Rocket Fireworks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲14313.86 ▼0.498.98 ▲6.7543.40 ▼1.25
Dashboard /wp-admin2,195 ▲185.62 ▲0.0883.98 ▼9.8938.85 ▼2.86
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0838.24 ▲0.1636.56 ▼0.71
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▼0.49663.81 ▼1.7256.63 ▲5.20
Media Library /wp-admin/upload.php1,403 ▲124.19 ▲0.03108.12 ▲3.1348.88 ▲1.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rocket-fireworks/rocket-fireworks.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

rocket-fireworks/rocket-fireworks.php Passed 13 tests

This is the main PHP file of "Rocket Fireworks" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Rocket Fireworks Celebration Plugin for your blog or website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected61 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript18633
PHP151628
CSS1050

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected