Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.27MB] [CPU: ▼11.23ms] Passed 4 tests
Server-side resources used by Christmas Blocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.48 ▼3.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.04 ▲3.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.51 ▼0.31 |
Add New Post /wp-admin/post-new.php | 4.80 ▼1.08 | 55.46 ▼37.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.27 ▼3.27 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Christmas Blocks: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.25 ▼0.13 | 1.70 ▼0.11 | 41.76 ▼2.67 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▼0.03 | 86.82 ▼2.15 | 46.20 ▲3.84 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 33.59 ▼0.90 | 37.12 ▼2.10 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,673 | 26.01 ▲2.73 | 908.67 ▲288.58 | 52.33 ▼7.95 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.11 ▼0.09 | 100.48 ▲0.78 | 40.85 ▼4.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: christmas, blocks
christmas-blocks/christmas.php 92% from 13 tests
The main PHP file in "Christmas Blocks" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("christmas-blocks.php" instead of "christmas.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
Everything looks great! No dangerous files found in this plugin206 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 35 | 7 | 156 |
PHP | 1 | 7 | 14 | 46 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
9 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/assorted_candies.png | 12.95KB | 4.45KB | ▼ 65.62% |
images/christmastree.png | 5.91KB | 2.78KB | ▼ 52.93% |
images/candycaneheart.png | 22.02KB | 1.76KB | ▼ 92.01% |
images/snowman.png | 8.08KB | 3.44KB | ▼ 57.42% |
images/santa.png | 15.26KB | 5.48KB | ▼ 64.09% |