Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼1.23ms] Passed 4 tests
This is a short check of server-side resources used by Donation Thermometer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 43.47 ▲0.37 |
Dashboard /wp-admin | 3.64 ▲0.33 | 53.19 ▲3.07 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 54.30 ▼12.42 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 103.13 ▲4.06 |
Media Library /wp-admin/upload.php | 3.54 ▲0.30 | 45.71 ▲9.92 |
Thermometer /wp-admin/options-general.php?page=thermometer-settings | 3.80 | 39.09 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
thermometer_options |
widget_recent-posts |
thermometer_style |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Donation Thermometer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲98 | 13.20 ▼1.41 | 2.12 ▲0.28 | 42.41 ▼1.29 |
Dashboard /wp-admin | 2,279 ▲79 | 5.88 ▼0.03 | 99.37 ▼1.37 | 46.63 ▲3.71 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.04 | 39.35 ▼0.95 | 35.87 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,537 ▲20 | 23.43 ▲5.91 | 678.52 ▲61.70 | 61.95 ▲6.66 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.17 ▼0.04 | 93.83 ▼5.26 | 38.59 ▼3.11 |
Thermometer /wp-admin/options-general.php?page=thermometer-settings | 1,274 | 2.38 | 39.76 | 42.33 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/donation-thermometer/donation_therm.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/donation-thermometer/includes/therm_widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/donation-thermometer/includes/therm_shortcode.php:299
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/donation-thermometer/includes/therm_widget-config.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots do not have images: #1 (The Thermometer settings page.), #2 (Multiple thermometers displayed on a page/sidebar. Unique values and colours can be assigned for each.), #3 (Customisable CSS rules for thermometers.), #4 (The help page describing the various shortcode options and functionality.)
donation-thermometer/donation_therm.php 85% from 13 tests
The main file in "Donation Thermometer" v. 2.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 300 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("donation-thermometer.php" instead of "donation_therm.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 plugin1,544 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 224 | 191 | 1,515 |
JavaScript | 1 | 2 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin