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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.44ms] Passed 4 tests
Server-side resources used by Woo Role Purchasable
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.76 ▼3.25 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.63 ▼8.99 |
Posts /wp-admin/edit.php | 3.37 ▲0.00 | 48.61 ▲3.55 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.50 ▲2.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 40.93 ▲7.41 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 13 new options
New WordPress options |
---|
theysaidso_admin_options |
wrpur-editor |
wrpur-method |
widget_recent-comments |
wrpur-subscriber |
wrpur-administrator |
widget_recent-posts |
can_compress_scripts |
wrpur-guest |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo Role Purchasable
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.27 | 1.69 ▼0.47 | 39.66 ▼6.90 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼1.03 | 100.06 ▼19.69 | 40.30 ▼6.51 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.00 | 40.23 ▲6.06 | 34.65 ▼4.58 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.45 ▲0.13 | 657.11 ▼14.97 | 53.00 ▼1.04 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.03 | 103.11 ▼10.70 | 49.04 ▼0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 13 options in the database
- wrpur-method
- widget_recent-posts
- wrpur-contributor
- db_upgraded
- theysaidso_admin_options
- wrpur-guest
- widget_theysaidso_widget
- widget_recent-comments
- wrpur-editor
- wrpur-author
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-role-purchasable/woo-role-purchasable.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-role-purchasable/core/class-woorolepurchasable.php:29
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-role-purchasable/woo-role-purchasable.php on line 34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Settings), #2 (Shop page), #3 (Product page)
woo-role-purchasable/woo-role-purchasable.php 92% from 13 tests
The main PHP file in "Woo Role Purchasable" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- 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
No dangerous file extensions were detected258 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 66 | 221 |
PO File | 1 | 42 | 113 | 37 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 11 | |
▷ Static methods | 11 | 100.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 66.87KB | 18.53KB | ▼ 72.29% |
screenshot-3,png.png | 40.52KB | 11.59KB | ▼ 71.40% |
screenshot-2.png | 17.19KB | 5.11KB | ▼ 70.25% |