Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.90ms] Passed 4 tests
Server-side resources used by Stream Sage for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.79 ▼6.52 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.32 ▼3.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.92 ▼0.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.40 ▼13.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.25 ▼4.86 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Stream Sage for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.11 | 1.79 ▼0.01 | 44.68 ▼2.06 |
Dashboard /wp-admin | 2,195 ▲18 | 5.53 ▼0.11 | 84.58 ▼7.19 | 39.65 ▼2.05 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▼0.08 | 33.81 ▼3.69 | 33.68 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.90 ▼0.05 | 606.95 ▼79.55 | 55.53 ▲1.28 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.14 ▼0.08 | 97.91 ▼14.27 | 46.09 ▼4.04 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
stream-sage-for-woocommerce/streamsage-for-woocommerce.php 69% from 13 tests
The main file in "Stream Sage for WooCommerce" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stream-sage-for-woocommerce.php" instead of "streamsage-for-woocommerce.php")
- Requires at least: The required version number must match the one declared in readme.txt ("5.4" instead of "5.6")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,545 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 389 | 743 | 1,446 |
CSS | 1 | 8 | 0 | 49 |
SVG | 2 | 0 | 0 | 34 |
JavaScript | 1 | 2 | 0 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 12 | 12.90% |
▷ Public methods | 80 | 86.02% |
▷ Protected methods | 1 | 1.08% |
▷ Private methods | 12 | 12.90% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected