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.00MB] [CPU: ▼2.62ms] Passed 4 tests
Analyzing server-side resources used by Fast Cart for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.36 ▼1.69 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.35 ▲1.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.68 ▼3.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.06 ▼6.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.65 ▲0.33 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Fast Cart for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲36 | 14.72 ▲0.48 | 1.86 ▲0.16 | 40.03 ▼3.55 |
Dashboard /wp-admin | 2,206 ▲26 | 5.63 ▼0.04 | 96.52 ▼4.11 | 45.36 ▼0.66 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.03 ▲0.06 | 39.20 ▼1.66 | 37.02 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,534 ▼2 | 23.14 ▲0.04 | 669.39 ▲24.67 | 57.18 ▼3.88 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.22 ▲0.07 | 95.63 ▼5.96 | 43.07 ▼0.66 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fast-cart/fast-cart.php
- > /wp-content/plugins/fast-cart/includes/class-fast-cart.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-cart/includes/style.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/fast-cart/includes/setting-tab/general.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/fast-cart/includes/layout.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #3, #4, #5 in fast-cart/assets to your readme.txt
fast-cart/fast-cart.php 92% from 13 tests
The main file in "Fast Cart for WooCommerce" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("4.8" instead of "5.5")
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
No dangerous file extensions were detected2,859 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 525 | 206 | 1,461 |
CSS | 11 | 254 | 94 | 1,228 |
JavaScript | 3 | 53 | 28 | 147 |
SVG | 1 | 11 | 0 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 24 | 37.50% |
▷ Public methods | 64 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/inline.png | 0.15KB | 0.15KB | ▼ 3.80% |
admin/images/full.png | 0.16KB | 0.15KB | ▼ 5.03% |