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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 4.45 ▼34.91 |
Dashboard /wp-admin | 2.06 ▼1.28 | 5.96 ▼61.35 |
Posts /wp-admin/edit.php | 2.06 ▼1.29 | 7.22 ▼45.71 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 6.50 ▼90.19 |
Media Library /wp-admin/upload.php | 2.06 ▼1.16 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.41 ▲0.25 | 1.72 ▼0.09 | 45.12 ▲2.00 |
Dashboard /wp-admin | 2,200 ▲20 | 5.62 ▼0.10 | 83.75 ▼4.23 | 38.27 ▼2.89 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.01 ▼0.01 | 41.06 ▼0.32 | 35.29 ▼2.56 |
Add New Post /wp-admin/post-new.php | 1,393 ▼162 | 20.72 ▲2.63 | 555.78 ▼97.98 | 25.94 ▼23.47 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.24 ▼0.03 | 96.99 ▼8.05 | 44.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 0 | 35 |
PHP | 1 | 1 | 12 | 15 |
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 code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
halloween-box.png | 211.03KB | 90.70KB | ▼ 57.02% |