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
This plugin's installer ran successfully
Server metrics [RAM: ▲5.34MB] [CPU: ▲25.47ms] 75% from 4 tests
This is a short check of server-side resources used by Subaccounts for WooCommerce
Please fix the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.34MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.21 ▲5.75 | 60.49 ▲21.03 |
Dashboard /wp-admin | 9.23 ▲5.93 | 68.34 ▲19.13 |
Posts /wp-admin/edit.php | 9.23 ▲5.87 | 76.60 ▲33.47 |
Add New Post /wp-admin/post-new.php | 9.70 ▲3.81 | 121.13 ▲36.86 |
Media Library /wp-admin/upload.php | 9.23 ▲6.00 | 64.03 ▲28.26 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.23 | 54.45 |
Server storage [IO: ▲3.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 203 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
fs_active_plugins |
fs_accounts |
fs_debug_mode |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Subaccounts for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.24 ▼0.16 | 1.75 ▲0.05 | 30.69 ▼13.57 |
Dashboard /wp-admin | 2,220 ▲46 | 5.64 ▲0.12 | 128.34 ▲39.73 | 58.30 ▲16.58 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 2.11 ▲0.14 | 40.93 ▲6.58 | 40.30 ▲5.46 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.19 ▲0.08 | 668.53 ▲20.16 | 56.10 ▲8.21 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.18 ▼0.07 | 96.71 ▲3.30 | 46.00 ▲3.82 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,072 | 1.68 | 27.31 | 31.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/subaccounts-for-woocommerce/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- fs_accounts
- fs_debug_mode
- fs_active_plugins
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
subaccounts-for-woocommerce/subaccounts-for-woocommerce.php Passed 13 tests
"Subaccounts for WooCommerce" version 1.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
Subaccounts for WooCommerce allows the creation of subaccounts for your WooCommerce customers and subscribers.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin41,602 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 10,458 | 19,255 | 37,062 |
JavaScript | 5 | 561 | 983 | 2,945 |
CSS | 17 | 112 | 122 | 986 |
PO File | 1 | 180 | 0 | 379 |
Markdown | 1 | 68 | 0 | 214 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 93.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 198 | 15.73% |
▷ Public methods | 869 | 69.02% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 373 | 29.63% |
Functions | 175 | |
▷ Named functions | 172 | 98.29% |
▷ Anonymous functions | 3 | 1.71% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/css/images/ui-icons_555555_256x240.png | 6.96KB | 4.18KB | ▼ 39.91% |
assets/css/images/ui-icons_ffffff_256x240.png | 6.39KB | 4.18KB | ▼ 34.52% |
assets/css/images/ui-icons_444444_256x240.png | 6.97KB | 4.18KB | ▼ 40.04% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |