Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.33ms] Passed 4 tests
An overview of server-side resources used by CURBON
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.13 ▼8.83 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.64 ▼2.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.75 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.43 ▲9.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.31 ▲2.21 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 104 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by CURBON
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.35 ▼1.26 | 1.64 ▼0.15 | 42.02 ▼7.16 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.12 | 107.44 ▼12.65 | 42.60 ▼6.49 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.01 | 38.81 ▼2.31 | 34.01 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,533 ▲3 | 23.39 ▲5.14 | 645.81 ▲26.72 | 49.38 ▲1.38 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.30 ▲0.13 | 95.41 ▼2.64 | 40.13 ▲0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/curbon/curbon-constant.php+18
Use of undefined constant CURBON_PLUGIN_FILE - assumed 'CURBON_PLUGIN_FILE' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/curbon/curbon.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: active_step in wp-content/plugins/curbon/includes/admin/views/curbon-onboarding.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/curbon/includes/admin/views/admin-dashboard-page.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/curbon/includes/admin/views/curbon-settings.php:103
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/curbon/curbon-constant.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/curbon/includes/woo/avada-functions-override.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/curbon/includes/admin/views/onboarding/onboarding-step-1.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/curbon/includes/admin/views/dashboard.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/curbon/includes/class-curbon-webhook-calls.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/curbon/includes/admin/views/curbon-look-and-feel.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/curbon/includes/admin/views/onboarding/onboarding-step-2.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== CURBON===
)
curbon/curbon.php Passed 13 tests
The primary PHP file in "CURBON" version 1.0.0 is used by WordPress to initiate all plugin functionality
39 characters long description:
Ecommerce carbon offsetting made simple
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin10,569 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,722 | 1,204 | 6,586 |
CSS | 3 | 543 | 97 | 3,132 |
SVG | 25 | 0 | 2 | 637 |
JavaScript | 2 | 39 | 9 | 198 |
Markdown | 2 | 1 | 0 | 16 |
PHP code Passed 2 tests
A short review 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.30 |
Average class complexity | 20.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 75 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 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
29 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/carbon-offset-thumbnail.png | 15.39KB | 16.49KB | 0.00% |
assets/images/Rectangle-1396-300x173.png | 2.08KB | 2.20KB | 0.00% |
assets/images/bars-yellow-300x163.png | 0.59KB | 0.60KB | 0.00% |
assets/images/Ellipse-246.png | 0.27KB | 0.28KB | 0.00% |
assets/images/bars-purple-324x213.png | 0.64KB | 0.63KB | ▼ 1.52% |