Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲0.19ms] Passed 4 tests
This is a short check of server-side resources used by Reforestum - Carbon neutral products at checkout
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.99 ▼0.84 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.84 ▼3.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.05 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.57 ▲5.89 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.07 ▲3.55 |
Server storage [IO: ▲4.48MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Reforestum - Carbon neutral products at checkout
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲113 | 13.71 ▼0.67 | 6.07 ▲4.43 | 42.60 ▲4.10 |
Dashboard /wp-admin | 2,225 ▲36 | 5.87 ▼0.19 | 106.70 ▼4.00 | 43.14 ▼0.18 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.13 ▲0.09 | 39.85 ▲4.76 | 39.85 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 17.44 ▼5.73 | 600.29 ▼74.97 | 52.66 ▼4.89 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.20 ▲0.00 | 96.59 ▼0.68 | 40.17 ▼4.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Reforestum::plugin_uninstall() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 90% from 29 tests
readme.txt 94% 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
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
reforestum/reforestum.php 85% from 13 tests
The main PHP file in "Reforestum - Carbon neutral products at checkout" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 248 characters long)
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 detected2,336 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 353 | 681 | 1,683 |
PO File | 1 | 89 | 137 | 302 |
CSS | 2 | 41 | 8 | 229 |
JavaScript | 2 | 16 | 33 | 121 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 28.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 73 | |
▷ Static methods | 67 | 91.78% |
▷ Public methods | 70 | 95.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.11% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
5 PNG files occupy 4.33MB with 0.84MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/reforestum-logo.png | 3.94KB | 4.06KB | 0.00% |
public/images/icon-no-offset.png | 1.14KB | 1.17KB | 0.00% |
public/images/icon.png | 0.82KB | 0.84KB | 0.00% |
public/images/icon-carbon-red.png | 0.57KB | 0.44KB | ▼ 22.55% |
public/images/home.png | 4,423.29KB | 1,135.84KB | ▼ 74.32% |