Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/editionguard-for-woocommerce-ebook-sales-with-drm/woocommerce_editionguard.php+16
Undefined index: woo_ed_resource_id
Server metrics [RAM: ▼1.83MB] [CPU: ▼54.69ms] Passed 4 tests
Analyzing server-side resources used by EditionGuard for WooCommerce - eBook Sales with DRM
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.11 ▼34.63 |
Dashboard /wp-admin | 2.19 ▼1.15 | 7.12 ▼56.03 |
Posts /wp-admin/edit.php | 2.19 ▼1.16 | 6.05 ▼40.23 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 8.06 ▼87.86 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.37 ▼30.20 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EditionGuard for WooCommerce - eBook Sales with DRM
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.28 ▼1.11 | 4.44 ▲2.76 | 43.46 ▲2.61 |
Dashboard /wp-admin | 2,203 ▲14 | 4.85 ▼0.06 | 109.05 ▲3.86 | 43.91 ▲1.42 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.01 ▲0.04 | 39.79 ▲4.47 | 34.33 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 19.22 ▼3.75 | 596.95 ▼27.37 | 76.68 ▲12.10 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.10 ▼0.11 | 95.41 ▼20.62 | 39.20 ▼9.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/editionguard-for-woocommerce-ebook-sales-with-drm/woocommerce_editionguard.php+16
Undefined index: woo_ed_resource_id
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/editionguard-for-woocommerce-ebook-sales-with-drm/woocommerce_editionguard.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (General settings page.), #2 (Downloadable product addition with EditionGuard DRM option.), #3 (Download page for a successful order.)
editionguard-for-woocommerce-ebook-sales-with-drm/woocommerce_editionguard.php 92% from 13 tests
The main file in "EditionGuard for WooCommerce - eBook Sales with DRM" v. 3.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("editionguard-for-woocommerce-ebook-sales-with-drm.php" instead of "woocommerce_editionguard.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
There were no executable files found in this plugin674 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 117 | 46 | 435 |
JavaScript | 1 | 33 | 6 | 208 |
CSS | 1 | 2 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
3 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 79.38KB | 28.83KB | ▼ 63.68% |
screenshot-1.png | 49.60KB | 17.15KB | ▼ 65.42% |
screenshot-2.png | 71.67KB | 26.75KB | ▼ 62.67% |