Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pcf-new-year-countdown/core/pcfcny-widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; pcfcny_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼58.00ms] Passed 4 tests
Server-side resources used by PCF New Year Countdown
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.40 ▼39.60 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.23 ▼48.21 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 7.80 ▼42.71 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.11 ▼101.49 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.45 ▼33.94 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_pcfcny_widget |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PCF New Year Countdown
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.06 | 1.61 ▼0.47 | 42.43 ▼0.81 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▲0.04 | 89.78 ▼3.75 | 38.44 ▼8.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.01 | 43.46 ▲9.00 | 34.69 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.83 ▼0.61 | 678.35 ▼13.35 | 63.38 ▲9.86 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.03 | 100.38 ▼8.87 | 45.97 ▼2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pcf-new-year-countdown/core/pcfcny-widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; pcfcny_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_pcfcny_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pcf-new-year-countdown/pcf-newyear-countdown-main.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pcf-new-year-countdown/core/pcfcny-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pcf-new-year-countdown/core/pcfcny-countdown.php:115
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 ('Sleeps' Countdown) image missing
- Tags: There are too many tags (12 tag instead of maximum 10)
pcf-new-year-countdown/pcf-newyear-countdown-main.php 85% from 13 tests
The main file in "PCF New Year Countdown" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pcf-new-year-countdown.php" instead of "pcf-newyear-countdown-main.php")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! 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
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected