Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.35ms] Passed 4 tests
Analyzing server-side resources used by Subscriber Discounts for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 39.08 ▼0.65 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.84 ▲0.32 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.65 ▼2.35 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 103.88 ▲14.76 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.35 ▼2.72 |
Subscriber Discounts /wp-admin/admin.php?page=subscriber-discounts-woo | 3.31 | 30.71 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Subscriber Discounts for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.24 ▼1.14 | 1.73 ▲0.13 | 42.88 ▲4.06 |
Dashboard /wp-admin | 2,213 ▲24 | 5.89 ▲0.98 | 107.78 ▼16.77 | 41.33 ▼2.30 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▲0.03 | 40.24 ▼0.51 | 35.46 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,521 ▼23 | 17.73 ▼0.74 | 641.08 ▼17.17 | 51.14 ▼17.14 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.24 ▲0.02 | 99.86 ▼10.10 | 43.20 ▼4.15 |
Subscriber Discounts /wp-admin/admin.php?page=subscriber-discounts-woo | 1,225 | 1.95 | 37.46 | 34.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: activecampaign, woocommerce, discounts, mailchimp
subscriber-discounts-for-woocommerce/subscriber-discounts-for-woocommerce.php 92% from 13 tests
The main PHP script in "Subscriber Discounts for WooCommerce" version 1.5.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected6,940 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 3 | 65 | 0 | 3,200 |
JavaScript | 7 | 198 | 34 | 2,408 |
CSS | 4 | 63 | 36 | 663 |
PHP | 8 | 59 | 155 | 575 |
JSON | 2 | 0 | 0 | 94 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/js/chosen_v1.6.2/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
includes/js/chosen_v1.6.2/docsupport/oss-credit.png | 4.30KB | 3.26KB | ▼ 24.02% |
includes/js/chosen_v1.6.2/docsupport/chosen.png | 1.47KB | 2.08KB | 0.00% |
includes/js/chosen_v1.6.2/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |