Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.63ms] Passed 4 tests
A check of server-side resources used by Christmasify!
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 38.78 ▼3.39 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.48 ▼3.28 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.58 ▼2.58 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 90.65 ▼9.27 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.76 ▲1.13 |
Server storage [IO: ▲10.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Christmasify!
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲181 | 13.77 ▼0.87 | 7.80 ▲6.05 | 39.67 ▼2.69 |
Dashboard /wp-admin | 2,262 ▲95 | 5.62 ▼0.04 | 96.23 ▼14.45 | 42.55 ▼0.21 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 2.01 ▲0.06 | 39.31 ▼4.17 | 36.03 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.24 ▲0.22 | 594.34 ▼54.45 | 48.46 ▼6.25 |
Media Library /wp-admin/upload.php | 1,467 ▲70 | 4.22 ▲0.03 | 95.49 ▼3.10 | 40.77 ▼0.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/christmasify/public/partials/cf-christmasification-public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/christmasify/admin/partials/cf-christmasification-admin-display.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
10 plugin tags: cyberfoxdigital, cyber fox, music, santa, christmas font...
christmasify/cf-christmasification.php 92% from 13 tests
"Christmasify!" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("christmasify.php" instead of "cf-christmasification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin801 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 150 | 533 | 379 |
CSS | 3 | 31 | 4 | 196 |
Sass | 1 | 10 | 0 | 166 |
JavaScript | 3 | 12 | 27 | 60 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 23.08% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.21MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/xmas-frame.png | 216.13KB | 54.26KB | ▼ 74.90% |