Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼16.10ms] Passed 4 tests
A check of server-side resources used by Charity-thermometer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.92 ▼6.05 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.25 ▼0.99 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.06 ▼7.25 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.66 | 44.10 ▼50.10 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.67 ▲2.71 |
All Thermometers /wp-admin/edit.php?post_type=wpch_thermometer | 3.36 | 37.28 |
Add New /wp-admin/post-new.php?post_type=wpch_thermometer | 3.17 | 41.04 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Charity-thermometer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲192 | 13.44 ▼1.12 | 9.78 ▲8.02 | 42.86 ▼3.95 |
Dashboard /wp-admin | 2,237 ▲60 | 5.62 ▲0.00 | 84.96 ▼14.57 | 81.29 ▲37.88 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.01 ▲0.02 | 35.82 ▲0.32 | 35.16 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,582 ▲37 | 23.33 ▼0.40 | 749.71 ▲48.92 | 38.21 ▼13.59 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.16 ▼0.07 | 115.86 ▲8.06 | 76.24 ▲26.67 |
All Thermometers /wp-admin/edit.php?post_type=wpch_thermometer | 1,115 | 2.01 | 30.92 | 31.61 |
Add New /wp-admin/post-new.php?post_type=wpch_thermometer | 2,468 | 7.64 | 174.71 | 142.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=wpch_thermometer
- > Notice in wp-content/plugins/charitydonation-thermometer/wpcm_thermometer.php+199
Undefined index: _wphc_wpnonce_
- > GET request to /wp-admin/post-new.php?post_type=wpch_thermometer
- > Notice in wp-content/plugins/charitydonation-thermometer/templates/wpch_metabox.php+94
Undefined variable: dollar
- > GET request to /wp-admin/post-new.php?post_type=wpch_thermometer
- > Notice in wp-content/plugins/charitydonation-thermometer/templates/wpch_metabox.php+95
Undefined variable: pound
- > GET request to /wp-admin/post-new.php?post_type=wpch_thermometer
- > Notice in wp-content/plugins/charitydonation-thermometer/templates/wpch_metabox.php+96
Undefined variable: yen
- > GET request to /wp-admin/post-new.php?post_type=wpch_thermometer
- > Notice in wp-content/plugins/charitydonation-thermometer/templates/wpch_metabox.php+97
Undefined variable: euro
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpch_thermometer
- > Notice in wp-content/plugins/charitydonation-thermometer/templates/wpch_metabox.php+123
Undefined variable: wpch_symbol
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 fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/charitydonation-thermometer/wpcm_thermometer.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/charitydonation-thermometer/templates/wpch_metabox.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: meter, thermometer, donation, non-profit, donate...
charitydonation-thermometer/wpcm_thermometer.php 85% from 13 tests
The entry point to "Charity-thermometer" version 1.1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("charitydonation-thermometer.php" instead of "wpcm_thermometer.php")
- Description: Keep the plugin description shorter than 140 characters (currently 306 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected657 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 94 | 52 | 382 |
CSS | 1 | 16 | 2 | 142 |
JavaScript | 2 | 45 | 40 | 133 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/icon.png | 1.61KB | 1.01KB | ▼ 37.35% |
css/images/Thermometer.png | 10.90KB | 4.89KB | ▼ 55.14% |
css/images/cti.png | 3.48KB | 1.91KB | ▼ 45.16% |