Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▲1.20ms] Passed 4 tests
Analyzing server-side resources used by Woo Groups Discount
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.92 ▲0.31 |
Dashboard /wp-admin | 3.31 ▲0.00 | 54.87 ▲2.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.19 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.07 ▲2.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.43 ▲5.42 |
Server storage [IO: ▲0.24MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Groups Discount
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.37 ▲0.02 | 1.93 ▲0.02 | 52.59 ▲9.83 |
Dashboard /wp-admin | 2,198 ▲18 | 5.64 ▲0.00 | 91.15 ▼2.58 | 35.58 ▼8.56 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.02 ▲0.03 | 43.67 ▲5.97 | 36.16 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.96 ▼0.06 | 690.12 ▲49.55 | 60.72 ▲13.02 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.09 | 113.42 ▲6.80 | 50.48 ▲9.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'version' of non-object in wp-content/plugins/woo-groups-discount/core/class-woogroupsdiscount.php on line 32
- > 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-groups-discount/woo-groups-discount.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woo-groups-discount/woo-groups-discount.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-groups-discount/core/class-woogroupsdiscount.php:35
- > PHP Notice
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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Settings: Method - Method dashboard section.), #2 (Settings: Groups - Groups dashboard section.), #3 (Prices - Different prices by user's role.)
woo-groups-discount/woo-groups-discount.php Passed 13 tests
The entry point to "Woo Groups Discount" version 3.2.0 is a PHP file that has certain tags in its header comment area
45 characters long description:
Apply discounts according to the user's group
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin858 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 160 | 220 | 769 |
PO File | 1 | 56 | 114 | 85 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 55.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 6.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 29 | 100.00% |
▷ Public methods | 26 | 89.66% |
▷ Protected methods | 2 | 6.90% |
▷ Private methods | 1 | 3.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.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