73% halloween-box

Code Review | Halloween Box

WordPress plugin Halloween Box scored73%from 54 tests.

About plugin

  • Plugin page: halloween-box
  • Plugin version: 2.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: Aug 23, 2020
  • Number of updates: 4
  • Update frequency: every 258.8 days
  • Top authors: nath4n (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,068 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
Installer ran successfully

Server metrics [RAM: ▼1.95MB] [CPU: ▼58.04ms] Passed 4 tests

An overview of server-side resources used by Halloween Box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.424.45 ▼34.91
Dashboard /wp-admin2.06 ▼1.285.96 ▼61.35
Posts /wp-admin/edit.php2.06 ▼1.297.22 ▼45.71
Add New Post /wp-admin/post-new.php2.06 ▼3.826.50 ▼90.19
Media Library /wp-admin/upload.php2.06 ▼1.166.80 ▼28.14

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Halloween Box: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.41 ▲0.251.72 ▼0.0945.12 ▲2.00
Dashboard /wp-admin2,200 ▲205.62 ▼0.1083.75 ▼4.2338.27 ▼2.89
Posts /wp-admin/edit.php2,102 ▲22.01 ▼0.0141.06 ▼0.3235.29 ▼2.56
Add New Post /wp-admin/post-new.php1,393 ▼16220.72 ▲2.63555.78 ▼97.9825.94 ▼23.47
Media Library /wp-admin/upload.php1,402 ▲24.24 ▼0.0396.99 ▼8.0544.81 ▼2.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the halloween-box-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/halloween-box/init.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: halloween style, post css, content css, halloween box, halloween...

halloween-box/init.php 77% from 13 tests

The main PHP file in "Halloween Box" ver. 2.00 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("halloween-box.php" instead of "init.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS10035
PHP111215

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
halloween-box.png211.03KB90.70KB▼ 57.02%