Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.00ms] Passed 4 tests
Analyzing server-side resources used by WpXmas-Snow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.81 ▼13.07 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.58 ▼6.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.06 ▼5.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.23 ▼6.68 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 34.01 ▼0.63 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WpXmas-Snow
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲137 | 14.43 ▲0.08 | 7.40 ▲5.68 | 106.71 ▲62.44 |
Dashboard /wp-admin | 2,195 ▲18 | 5.67 ▲0.03 | 87.93 ▼0.38 | 39.26 ▼0.89 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.07 | 38.88 ▼4.67 | 32.46 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.23 ▲0.17 | 632.46 ▲25.51 | 54.31 ▲2.78 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.01 | 95.96 ▼0.95 | 41.92 ▲2.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 an image for screenshot #1 (WpXmas Snow.)
- Donate link: Invalid URI found ("")
wpxmas-snow/init.php 92% from 13 tests
The main PHP file in "WpXmas-Snow" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wpxmas-snow.php" instead of "init.php")
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
No dangerous file extensions were detected154 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 5 | 11 | 78 |
PHP | 3 | 33 | 85 | 72 |
CSS | 1 | 0 | 1 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 1.62MB with 0.68MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/snowflake.png | 1.39KB | 1.24KB | ▼ 10.96% |
screenshot-1.png | 1,654.76KB | 445.54KB | ▼ 73.08% |