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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.32ms] Passed 4 tests
An overview of server-side resources used by Side Cart Woocommerce (Ajax)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.33 ▼6.98 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.47 ▼3.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.77 ▼0.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.48 ▼2.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.20 ▼0.33 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Side Cart Woocommerce (Ajax): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.29 | 1.58 ▼0.49 | 38.58 ▼3.26 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▲0.01 | 96.63 ▼3.51 | 43.46 ▼0.05 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.01 | 43.59 ▲3.50 | 39.29 ▲0.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.36 ▲0.04 | 607.83 ▼8.96 | 51.44 ▼1.28 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.18 ▼0.06 | 100.54 ▲1.09 | 42.61 ▼0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php
- > /wp-content/plugins/side-cart-woocommerce/admin/templates/preview/xoo-wsc-header-preview.php
- > /wp-content/plugins/side-cart-woocommerce/admin/templates/xoo-wsc-tab-info.php
- > /wp-content/plugins/side-cart-woocommerce/includes/xoo-framework/admin/templates/global/setting-upload.php
- > /wp-content/plugins/side-cart-woocommerce/admin/templates/xoo-wsc-tab-pro.php
- 139× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/side-cart-woocommerce/admin/views/settings/advanced.php:39
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 49
- > PHP Notice
Undefined variable: sy in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 53
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 67
- > PHP Notice
Undefined variable: sy in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 11
- > PHP Notice
Undefined variable: sy in wp-content/plugins/side-cart-woocommerce/templates/global/inline-style.php on line 55
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: floating cart, cart popup, slider, woocommerce, woocommerce cart
side-cart-woocommerce/xoo-wsc-main.php 92% from 13 tests
"Side Cart Woocommerce (Ajax)" version 2.4.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("side-cart-woocommerce.php" instead of "xoo-wsc-main.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
No dangerous file extensions were detected6,679 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 1,403 | 231 | 4,100 |
CSS | 4 | 327 | 31 | 1,422 |
JavaScript | 3 | 415 | 53 | 1,079 |
SVG | 1 | 0 | 0 | 58 |
XML | 1 | 4 | 0 | 20 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 29.56 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 18 | 17.48% |
▷ Public methods | 101 | 98.06% |
▷ Protected methods | 1 | 0.97% |
▷ Private methods | 1 | 0.97% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arrow-right.png | 0.45KB | 0.21KB | ▼ 54.53% |
assets/images/arrow-left.png | 0.45KB | 0.21KB | ▼ 54.62% |