Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.38ms] Passed 4 tests
This is a short check of server-side resources used by Carbon Offset
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.93 ▼7.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.13 ▼2.83 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.61 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 96.78 ▼5.61 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.66 ▲1.86 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
carbon_offset |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Carbon Offset
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 13.27 ▼1.09 | 5.04 ▲3.00 | 47.10 ▲2.86 |
Dashboard /wp-admin | 2,222 ▲37 | 4.85 ▼1.01 | 100.22 ▼4.62 | 40.86 ▼4.45 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▼0.01 | 40.22 ▲2.86 | 35.89 ▲2.66 |
Add New Post /wp-admin/post-new.php | 1,560 ▲41 | 18.10 ▼3.08 | 601.46 ▼44.61 | 69.20 ▲18.90 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.29 ▲0.06 | 98.26 ▼3.60 | 42.32 ▲0.35 |
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 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- carbon_offset
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function CarbonOffset\\add_action() in wp-content/plugins/carbon-offset/inc/AdminPage.php:41
- > PHP Fatal error
Uncaught Error: Class 'CarbonOffset\\PaymentAPI' not found in wp-content/plugins/carbon-offset/inc/PaymentAPICloverly.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: carbon offset, ecology, greenhouse, green
carbon-offset/carbon-offset.php Passed 13 tests
The entry point to "Carbon Offset" version 1.0.6 is a PHP file that has certain tags in its header comment area
36 characters long description:
Offset your site's carbon footprint.
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
There were no executable files found in this plugin651 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 121 | 611 | 651 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 82.05% |
▷ Protected methods | 6 | 15.38% |
▷ Private methods | 1 | 2.56% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/sponsors/wplemon.png | 2.65KB | 2.82KB | 0.00% |