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.03MB] [CPU: ▼3.71ms] Passed 4 tests
An overview of server-side resources used by Product Prices by User Roles for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 59.30 ▲55.79 | 11,585,500.44 ▲11,585,456.68 |
Dashboard /wp-admin | 3.37 ▲0.02 | 57.51 ▲1.38 |
Posts /wp-admin/edit.php | 3.48 ▲0.08 | 53.43 ▼3.82 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.02 | 90.21 ▼17.93 |
Media Library /wp-admin/upload.php | 3.29 ▲0.02 | 42.84 ▲5.53 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Prices by User Roles for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.39 | 2.01 ▲0.41 | 46.19 ▲5.73 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.03 | 93.70 ▲5.24 | 42.86 ▲0.29 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.05 | 35.87 ▼4.03 | 33.68 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.94 ▼0.10 | 671.36 ▼8.20 | 56.84 ▼3.09 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.31 ▲0.18 | 97.27 ▼9.91 | 42.56 ▼5.91 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: woocommerce, price by user role, user role, role based pricing
price-by-user-role-for-woocommerce/price-by-user-role-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Product Prices by User Roles for WooCommerce" version 1.7.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires PHP: Required version must match the one declared in readme.txt ("7.3" instead of "5.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,517 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 178 | 621 | 1,266 |
JavaScript | 4 | 51 | 7 | 251 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 22.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 49 | |
▷ Static methods | 1 | 2.04% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin