Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/santas-christmas-countdown/xmascount.php+68
Methods with the same name as their class will not be constructors in a future version of PHP; cw_axmascount has a deprecated constructor
Server metrics [RAM: ▼1.94MB] [CPU: ▼52.89ms] Passed 4 tests
This is a short check of server-side resources used by Christmas Countdown Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.88 ▼34.58 |
Dashboard /wp-admin | 2.08 ▼1.26 | 6.98 ▼51.63 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.00 ▼36.30 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.34 ▼89.05 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.18 ▼30.21 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_cw_axmascount |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Christmas Countdown Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.32 ▼0.28 | 2.01 ▲0.35 | 41.84 ▼0.05 |
Dashboard /wp-admin | 2,195 ▲21 | 5.65 ▼0.01 | 82.87 ▼10.56 | 38.45 ▼0.43 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.03 ▲0.06 | 34.46 ▼4.37 | 33.77 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.22 ▲0.13 | 654.45 ▼37.16 | 52.33 ▼4.55 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.19 ▼0.01 | 95.57 ▼7.30 | 41.99 ▼5.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/santas-christmas-countdown/xmascount.php+68
Methods with the same name as their class will not be constructors in a future version of PHP; cw_axmascount has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_cw_axmascount
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/santas-christmas-countdown/xmascount.php:34
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Upload plugin and install.), #2 (On the plugins panel activate the Christmas Countdown Widget.), #3 (In the widgets menu drag the Christmas Countdown Widget to your sidebar.), #4 (The Christmas Countdown Widget displays a cute Santa Claus countdown to Christmas in your sidebar!), #5 (New since version 2.0 - use the shortcode `[countdown]` to display the countdown on any page or post.)
santas-christmas-countdown/xmascount.php 92% from 13 tests
The main file in "Christmas Countdown Widget" v. 2.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("santas-christmas-countdown.php" instead of "xmascount.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin109 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 25 | 62 |
JavaScript | 1 | 1 | 0 | 27 |
CSS | 1 | 2 | 0 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Named functions | 4 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.70MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 63.24KB | 18.73KB | ▼ 70.38% |
screenshot-4.png | 229.56KB | 83.84KB | ▼ 63.48% |
screenshot-2.png | 172.60KB | 53.71KB | ▼ 68.88% |
css/santas-countdown-background.png | 28.62KB | 9.81KB | ▼ 65.71% |
screenshot-5.png | 91.93KB | 95.87KB | 0.00% |