Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/pcf-thanksgiving-countdown/core/pcfct-widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; pcfct_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.48ms] Passed 4 tests
This is a short check of server-side resources used by PCF Thanksgiving Countdown
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.83 ▼42.27 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.36 ▼42.15 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.82 ▼44.65 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.80 ▼84.83 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.56 ▼31.66 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_pcfct_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
PCF Thanksgiving Countdown: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.00 | 1.68 ▲0.02 | 44.32 ▲2.81 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.03 | 88.12 ▲2.27 | 42.09 ▲0.58 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.03 | 36.65 ▼1.44 | 32.47 ▼5.19 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 21.03 ▲3.07 | 658.35 ▲13.61 | 65.69 ▼3.36 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.04 | 97.66 ▼5.36 | 44.41 ▼0.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/pcf-thanksgiving-countdown/core/pcfct-widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; pcfct_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_pcfct_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pcf-thanksgiving-countdown/pcf-thanksgiving-countdown-main.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcf-thanksgiving-countdown/core/pcfct-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pcf-thanksgiving-countdown/core/pcfct-countdown.php:115
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Screenshots: Screenshot #1 ('Sleeps' Countdown) image not found
pcf-thanksgiving-countdown/pcf-thanksgiving-countdown-main.php 85% from 13 tests
The main file in "PCF Thanksgiving Countdown" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("pcf-thanksgiving-countdown.php" instead of "pcf-thanksgiving-countdown-main.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
Good job! No executable or dangerous file extensions 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
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin