Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/pcf-guy-fawkes-night-countdown/core/pcfcg-widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; pcfcg_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.84ms] Passed 4 tests
Server-side resources used by PCF Guy Fawkes Night Countdown
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.82 ▼37.92 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.93 ▼42.10 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.53 ▼44.73 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.76 ▼94.62 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 5.86 ▼27.22 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_pcfcg_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by PCF Guy Fawkes Night Countdown
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.11 | 4.86 ▲2.78 | 40.81 ▼8.70 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.17 | 109.41 ▲7.47 | 40.80 ▼1.38 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▼0.10 | 38.89 ▼1.26 | 36.16 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.59 ▼5.63 | 678.31 ▼2.71 | 59.85 ▲8.02 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.04 | 97.13 ▲1.73 | 43.51 ▲1.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/pcf-guy-fawkes-night-countdown/core/pcfcg-widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; pcfcg_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_pcfcg_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pcf-guy-fawkes-night-countdown/pcf-guyfawkes-countdown-main.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pcf-guy-fawkes-night-countdown/core/pcfcg-countdown.php:115
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcf-guy-fawkes-night-countdown/core/pcfcg-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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 ('Sleeps' Countdown) image not found
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
pcf-guy-fawkes-night-countdown/pcf-guyfawkes-countdown-main.php 85% from 13 tests
The entry point to "PCF Guy Fawkes Night Countdown" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pcf-guy-fawkes-night-countdown.php" instead of "pcf-guyfawkes-countdown-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected157 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin