Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/pcf-halloween-countdown/core/pcfch-widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; pcfch_Widget has a deprecated constructor
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.92ms] Passed 4 tests
A check of server-side resources used by PCF Halloween Countdown
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.31 ▲5.10 |
Dashboard /wp-admin | 3.31 ▼0.03 | 43.23 ▼11.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 41.59 ▼7.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.19 ▼14.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.56 ▲1.19 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_pcfch_widget |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by PCF Halloween Countdown
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.20 ▼1.18 | 1.79 ▼0.27 | 43.57 ▲3.40 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.05 | 101.83 ▼6.72 | 42.03 ▼0.70 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.06 | 36.54 ▼4.92 | 31.54 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.27 ▲0.11 | 660.58 ▲23.94 | 53.29 ▼2.33 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.07 | 98.93 ▼5.91 | 41.40 ▼2.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_pcfch_widget
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pcf-halloween-countdown/pcf-halloween-countdown-main.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pcf-halloween-countdown/core/pcfch-countdown.php:115
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcf-halloween-countdown/core/pcfch-widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 ('Sleeps' Countdown)
- Tags: You are using too many tags: 14 tag instead of maximum 10
pcf-halloween-countdown/pcf-halloween-countdown-main.php 85% from 13 tests
The entry point to "PCF Halloween Countdown" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pcf-halloween-countdown.php" instead of "pcf-halloween-countdown-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin157 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 40 | 24 | 157 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin