Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.41ms] Passed 4 tests
An overview of server-side resources used by Carts Guru
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.25 ▼6.25 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.40 ▼5.43 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 42.45 ▼10.12 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.72 ▼3.82 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.01 ▼0.59 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cartsguru_carts |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
cartsguru_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Carts Guru
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.08 ▼0.62 | 1.60 ▼0.18 | 38.54 ▼5.99 |
Dashboard /wp-admin | 2,198 ▲21 | 5.51 ▼0.15 | 84.57 ▼13.78 | 41.27 ▼8.27 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▼0.05 | 32.93 ▼3.58 | 33.17 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,535 ▼1 | 18.26 ▲0.34 | 614.87 ▼4.95 | 73.88 ▲12.40 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.03 | 97.32 ▼0.11 | 42.56 ▼2.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/carts-guru/templates/pixel.php
- > /wp-content/plugins/carts-guru/trunk/templates/pixel.php
- > /wp-content/plugins/carts-guru/templates/checkout.php
- > /wp-content/plugins/carts-guru/trunk/templates/checkout.php
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #5, #6 in carts-guru/assets to your readme.txt
carts-guru/cartsguru-woocommerce.php 92% from 13 tests
The principal PHP file in "Carts Guru" v. 1.4.7 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("carts-guru.php" instead of "cartsguru-woocommerce.php")
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
Good job! No executable or dangerous file extensions detected1,384 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 230 | 191 | 1,303 |
PO File | 2 | 14 | 14 | 81 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 24.86 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 20 | 14.49% |
▷ Public methods | 110 | 79.71% |
▷ Protected methods | 6 | 4.35% |
▷ Private methods | 22 | 15.94% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected