Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲11.74ms] Passed 4 tests
This is a short check of server-side resources used by Chocolate Rain
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 49.70 ▲7.74 |
Dashboard /wp-admin | 3.31 ▲0.01 | 69.26 ▲19.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 56.31 ▲10.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 111.47 ▲20.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 45.39 ▲9.32 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Chocolate Rain
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,939 ▲3,204 | 47.30 ▲33.03 | 332.54 ▲330.55 | 58.03 ▲10.52 |
Dashboard /wp-admin | 3,285 ▲1,097 | 18.61 ▲13.68 | 378.27 ▲267.83 | 62.29 ▲18.43 |
Posts /wp-admin/edit.php | 3,186 ▲1,094 | 14.83 ▲12.78 | 345.67 ▲304.82 | 56.07 ▲19.69 |
Add New Post /wp-admin/post-new.php | 7,431 ▲5,898 | 33.86 ▲10.61 | 1,188.88 ▲508.08 | 85.64 ▲27.24 |
Media Library /wp-admin/upload.php | 2,466 ▲1,075 | 15.64 ▲11.43 | 390.22 ▲285.60 | 63.49 ▲21.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chocolate-rain/chocolate_rain_by_csomorelwood.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: Screenshot #1 (Chocolate Raiiin) image not found
- Tags: You are using too many tags: 14 tag instead of maximum 10
chocolate-rain/chocolate_rain_by_csomorelwood.php 92% from 13 tests
"Chocolate Rain" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("chocolate-rain.php" instead of "chocolate_rain_by_csomorelwood.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 plugin2,108 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 104 | 1 | 2,025 |
Sass | 1 | 6 | 0 | 52 |
JavaScript | 1 | 4 | 0 | 20 |
PHP | 1 | 4 | 8 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.00MB with 0.60MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/donate.png | 12.45KB | 5.15KB | ▼ 58.60% |
assets/images/csoki.png | 1,012.66KB | 382.44KB | ▼ 62.23% |