Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.47ms] Passed 4 tests
A check of server-side resources used by ClimateClick: Climate Action for all
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.26 ▼8.00 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.86 ▼18.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.29 ▼2.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.27 ▼13.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.22 ▲3.39 |
Server storage [IO: ▲1.32MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for ClimateClick: Climate Action for all
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.66 ▲0.32 | 1.53 ▼0.18 | 36.51 ▼7.06 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.10 | 92.21 ▼3.90 | 41.45 ▼2.30 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▲0.02 | 39.07 ▲0.38 | 35.77 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.88 ▲5.23 | 674.71 ▲20.05 | 58.09 ▼1.05 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.19 ▼0.08 | 94.28 ▼0.29 | 40.96 ▲0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Add an image for screenshot #1 (Climate Click will add a checkout button)
co2ok-for-woocommerce/south-pole-climate-click.php 62% from 13 tests
"ClimateClick: Climate Action for all" version 2.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("co2ok-for-woocommerce.php" instead of "south-pole-climate-click.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
- Domain Path: Prefix the domain path with a forward slash character ("/")
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
Good job! No executable or dangerous file extensions detected1,260 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 154 | 438 | 913 |
CSS | 2 | 65 | 1 | 347 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 4 | 10.26% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
8 PNG files occupy 0.24MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/climate-tree.png | 1.16KB | 0.63KB | ▼ 45.90% |
assets/images/dev-goal7.png | 49.58KB | 25.47KB | ▼ 48.62% |
assets/images/dev-goal13.png | 53.89KB | 20.56KB | ▼ 61.85% |
assets/images/dev-goal15.png | 31.68KB | 14.33KB | ▼ 54.75% |
assets/images/climate-click-info.png | 45.62KB | 21.40KB | ▼ 53.09% |