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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.38ms] Passed 4 tests
An overview of server-side resources used by Protected Content Packages For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.69 ▲0.27 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.43 ▼11.97 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.50 ▼5.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.28 ▼11.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 31.14 ▼4.54 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
csellwoo_enabled |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Protected Content Packages 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,789 ▲43 | 14.35 ▲0.09 | 1.66 ▼0.14 | 42.88 ▲0.94 |
Dashboard /wp-admin | 2,195 ▲18 | 5.52 ▼0.13 | 81.05 ▼4.60 | 38.71 ▼7.11 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.07 | 33.51 ▼4.20 | 36.13 ▲3.65 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.04 ▼0.19 | 631.09 ▼56.14 | 48.06 ▼4.23 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.02 | 95.80 ▼9.81 | 42.83 ▼3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- csellwoo_enabled
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: data in wp-content/plugins/content-sell-licenses-for-woocommerce/inc/views/view-csell-access-form.php on line 1
- > PHP Notice
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 94% from 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
Attributes that require attention:
- Screenshots: Please describe screenshot #3 in content-sell-licenses-for-woocommerce/assets to your readme.txt
content-sell-licenses-for-woocommerce/content-sell-woocommerce.php 85% from 13 tests
The primary PHP file in "Protected Content Packages For WooCommerce" version 1.0.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("content-sell-licenses-for-woocommerce.php" instead of "content-sell-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,402 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 882 | 962 | 2,036 |
PO File | 1 | 103 | 117 | 283 |
JavaScript | 2 | 34 | 12 | 81 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 147 | |
▷ Static methods | 30 | 20.41% |
▷ Public methods | 130 | 88.44% |
▷ Protected methods | 12 | 8.16% |
▷ Private methods | 5 | 3.40% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.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