Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.77ms] Passed 4 tests
Server-side resources used by AffiliateWP Checkout Referrals
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.84 ▼2.40 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.07 ▼6.94 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 45.59 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.02 ▼15.44 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.19 ▲1.71 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for AffiliateWP Checkout Referrals
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.63 ▼1.17 | 1.83 ▲0.01 | 38.07 ▼6.71 |
Dashboard /wp-admin | 2,206 ▲20 | 5.86 ▲0.92 | 105.43 ▼10.86 | 36.97 ▼8.79 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.01 | 39.09 ▲0.53 | 36.25 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.59 ▼5.56 | 681.19 ▼14.69 | 58.39 ▼7.17 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.15 ▼0.05 | 97.79 ▼12.43 | 41.29 ▼5.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Affiliate_WP_Checkout_Referrals_Base' not found in wp-content/plugins/affiliatewp-checkout-referrals/integrations/class-woocommerce.php:19
- > PHP Fatal error
Uncaught Error: Class 'Affiliate_WP_Checkout_Referrals_Base' not found in wp-content/plugins/affiliatewp-checkout-referrals/integrations/class-rcp.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/affiliatewp-checkout-referrals/includes/class-admin.php:26
- > PHP Fatal error
Uncaught Error: Class 'Affiliate_WP_Checkout_Referrals_Base' not found in wp-content/plugins/affiliatewp-checkout-referrals/integrations/class-edd.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: A description for screenshot #2 is required in affiliatewp-checkout-referrals/assets to your readme.txt
affiliatewp-checkout-referrals/affiliatewp-checkout-referrals.php Passed 13 tests
The main PHP script in "AffiliateWP Checkout Referrals" version 1.2 is automatically included on every request by WordPress
74 characters long description:
Allows a customer to award a referral to a specific affiliate at checkout.
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
Everything looks great! No dangerous files found in this plugin982 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 380 | 1,251 | 982 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 2 | 20.00% |
▷ Concrete classes | 8 | 80.00% |
▷ Final classes | 1 | 12.50% |
Methods | 95 | |
▷ Static methods | 2 | 2.11% |
▷ Public methods | 55 | 57.89% |
▷ Protected methods | 22 | 23.16% |
▷ Private methods | 18 | 18.95% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected