Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲4.98MB] [CPU: ▲14.73ms] Passed 4 tests
A check of server-side resources used by Simple Cart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.77 ▲5.30 | 58.80 ▲18.57 |
Dashboard /wp-admin | 8.79 ▲5.44 | 70.45 ▲11.05 |
Posts /wp-admin/edit.php | 8.79 ▲5.43 | 76.70 ▲30.58 |
Add New Post /wp-admin/post-new.php | 9.62 ▲3.73 | 100.14 ▼1.27 |
Media Library /wp-admin/upload.php | 8.79 ▲5.56 | 64.74 ▲31.58 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.79 | 52.51 |
Server storage [IO: ▲4.16MB] [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: 213 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
fs_debug_mode |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
fs_accounts |
fs_gdpr |
fs_active_plugins |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Cart
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 13.69 ▼0.50 | 9.21 ▲7.68 | 28.24 ▼9.10 |
Dashboard /wp-admin | 2,230 ▲50 | 5.48 ▼0.20 | 84.06 ▼6.15 | 40.16 ▼1.67 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.98 ▲0.00 | 40.53 ▲6.04 | 38.58 ▲5.83 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 22.98 ▼0.09 | 699.81 ▲57.43 | 50.11 ▼3.58 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.31 ▲0.16 | 95.59 ▼3.74 | 46.87 ▲2.77 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,069 | 1.70 | 24.17 | 27.45 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/simple-cart-solution/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- fs_active_plugins
- widget_recent-posts
- fs_accounts
- can_compress_scripts
- widget_recent-comments
- fs_debug_mode
- fs_gdpr
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'SimpleCart\\Abstracts\\Cart' not found in wp-content/plugins/simple-cart-solution/includes/carts/class-edd.php:14
- > PHP Fatal error
Uncaught Error: Interface 'SimpleCart\\Interfaces\\Cart' not found in wp-content/plugins/simple-cart-solution/includes/abstracts/class-cart.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/simple-cart-solution/templates/cart-button.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/simple-cart-solution/templates/cart-popup.php:13
- > PHP Fatal error
Uncaught Error: Class 'SimpleCart\\Abstracts\\Cart' not found in wp-content/plugins/simple-cart-solution/includes/carts/class-woocommerce.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% 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
7 plugin tags: cart, ecommerce, commerce, sales, easy-digital-downloads...
simple-cart-solution/simple-cart.php 77% from 13 tests
"Simple Cart" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-cart-solution.php" instead of "simple-cart.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin47,587 lines of code in 166 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 7,484 | 16,456 | 31,428 |
PO File | 12 | 6,960 | 8,455 | 15,240 |
JavaScript | 10 | 60 | 68 | 355 |
Sass | 8 | 40 | 0 | 306 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
CSS | 14 | 0 | 0 | 17 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 75.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 3 | 5.45% |
▷ Concrete classes | 52 | 94.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,204 | |
▷ Static methods | 184 | 15.28% |
▷ Public methods | 864 | 71.76% |
▷ Protected methods | 15 | 1.25% |
▷ Private methods | 325 | 26.99% |
Functions | 94 | |
▷ Named functions | 94 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 126 | |
▷ Global constants | 101 | 80.16% |
▷ Class constants | 25 | 19.84% |
▷ Public constants | 25 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |