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: ▼0.07ms] Passed 4 tests
An overview of server-side resources used by Store Referrals for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.67 ▼1.46 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.37 ▼0.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.36 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 122.24 ▲20.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.97 ▲1.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Store Referrals for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.19 | 1.61 ▼0.07 | 41.16 ▼4.65 |
Dashboard /wp-admin | 2,203 ▲12 | 5.81 ▲0.86 | 95.27 ▼10.61 | 39.23 ▼3.67 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▲0.01 | 37.26 ▼4.36 | 34.48 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 18.21 ▲0.69 | 674.79 ▲34.77 | 62.52 ▲9.16 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.23 ▲0.06 | 99.10 ▼6.29 | 41.74 ▼2.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected 'public' (T_PUBLIC) in wp-content/plugins/store-referrals-woocommerce/wc-store-referrals-integration.php on line 57
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/store-referrals-woocommerce/store-referrals-woocommerce.php:37
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
8 plugin tags: refer, reward, referrer, referral marketing, referral program...
store-referrals-woocommerce/store-referrals-woocommerce.php Passed 13 tests
"Store Referrals for WooCommerce" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
Store Referrals allows you to create, manage, and track multiple campaigns with tiered rewards.
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
Everything looks great! No dangerous files found in this plugin82 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 11 | 15 | 82 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected