Benchmarks
Plugin footprint 83% 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.07MB] [CPU: ▼4.03ms] Passed 4 tests
A check of server-side resources used by Website Carbon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.72 ▼2.11 |
Dashboard /wp-admin | 3.38 ▲0.04 | 50.30 ▼12.33 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.76 ▼3.14 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 96.80 ▲3.62 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.16 ▲1.45 |
Website Carbon /wp-admin/tools.php?page=websitecarbon | 3.30 | 35.24 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Website Carbon: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 13.31 ▼0.97 | 1.74 ▼0.37 | 46.90 ▼0.47 |
Dashboard /wp-admin | 2,270 ▲91 | 5.84 ▼0.01 | 100.82 ▼13.95 | 39.89 ▼4.82 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.01 ▼0.04 | 40.81 ▼2.76 | 35.37 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 23.31 ▲5.20 | 685.35 ▲49.42 | 70.27 ▲9.31 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.22 ▼0.08 | 105.49 ▼3.81 | 43.59 ▲1.03 |
Website Carbon /wp-admin/tools.php?page=websitecarbon | 889 | 2.04 | 23.97 | 26.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 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 50% 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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/website-carbon/views/dashboard-widget.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: measure, test, performance, carbon, emissions
website-carbon/websitecarbon.php 92% from 13 tests
The main PHP file in "Website Carbon" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("website-carbon.php" instead of "websitecarbon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected789 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 114 | 47 | 527 |
JavaScript | 1 | 26 | 17 | 115 |
Sass | 1 | 15 | 0 | 78 |
CSS | 1 | 12 | 0 | 69 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 25 | 100.00% |
▷ Public methods | 13 | 52.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 48.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin