Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.95ms] Passed 4 tests
Analyzing server-side resources used by Greencharts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.28 ▼2.86 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.45 ▼4.85 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.40 ▼0.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.88 ▲6.06 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.70 ▲3.95 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Greencharts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.13 ▼1.23 | 1.62 ▼0.21 | 38.60 ▼7.36 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▼0.98 | 105.56 ▼9.48 | 38.55 ▼5.19 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.06 ▲0.06 | 36.23 ▼0.09 | 35.99 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,542 ▲20 | 18.31 ▼4.68 | 587.72 ▼95.34 | 49.42 ▼1.92 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.23 ▲0.02 | 95.13 ▼6.68 | 42.05 ▼2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/greencharts/greencharts.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/greencharts/src/includes/shortcodes.php:4
- > PHP Fatal error
require_once(): Failed opening required 'GREENCHARTS__PLUGIN_DIRvendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/greencharts/src/loader.php on line 4
- > PHP Warning
require_once(GREENCHARTS__PLUGIN_DIRvendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/greencharts/src/loader.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/greencharts/src/includes/ajax.php:8
- > PHP Warning
Use of undefined constant GREENCHARTS__PLUGIN_DIR - assumed 'GREENCHARTS__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/greencharts/src/loader.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/greencharts/src/includes/assets.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Cyberway_Greencharts\\Logger\\LoggerInterface' not found in wp-content/plugins/greencharts/src/autoload/Logger/AbstractLogger.php:5
- > PHP Fatal error
Uncaught Error: Class 'Cyberway_Greencharts\\Api\\Api' not found in wp-content/plugins/greencharts/src/autoload/Api/Api_GlobalWarming.php:7
- > PHP Fatal error
Uncaught Error: Class 'Cyberway_Greencharts\\Logger\\AbstractLogger' not found in wp-content/plugins/greencharts/src/autoload/Logger/PhpLogger.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: charts, green, chartjs
greencharts/greencharts.php 85% from 13 tests
The principal PHP file in "Greencharts" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.0")
- Requires PHP: Required version number should use periods and dots only (ex. "7.0" instead of "^7.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,482 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 260 | 534 | 974 |
TypeScript | 7 | 120 | 65 | 387 |
Markdown | 1 | 45 | 0 | 94 |
Sass | 2 | 6 | 0 | 22 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 1 | 0 | 2 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 18 | 23.38% |
▷ Public methods | 64 | 83.12% |
▷ Protected methods | 10 | 12.99% |
▷ Private methods | 3 | 3.90% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin