Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.61ms] Passed 4 tests
A check of server-side resources used by AffiliateWP - Store Credit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.38 ▲0.27 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.99 ▼3.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.62 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.62 ▼12.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.10 ▲2.53 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AffiliateWP - Store Credit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 13.22 ▼1.45 | 1.72 ▼0.04 | 43.48 ▼6.34 |
Dashboard /wp-admin | 2,209 ▲18 | 5.87 ▲0.98 | 97.31 ▼20.25 | 38.48 ▼7.51 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.00 | 39.57 ▲0.13 | 39.34 ▲3.84 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.00 ▼0.21 | 645.41 ▼51.16 | 58.59 ▲4.93 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.08 | 95.47 ▼9.21 | 39.87 ▼6.21 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/affiliatewp-store-credit/includes/admin/settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliatewp-store-credit/includes/dashboard.php:13
- > PHP Fatal error
Uncaught Error: Class 'AffiliateWP_Store_Credit_Base' not found in wp-content/plugins/affiliatewp-store-credit/integrations/class-edd.php:3
- > PHP Fatal error
Uncaught Error: Class 'AffiliateWP_Store_Credit_Base' not found in wp-content/plugins/affiliatewp-store-credit/integrations/class-woocommerce.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/affiliatewp-store-credit/includes/admin/class-upgrades.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: store credit, affiliates, edd, woocommerce, affiliatewp...
affiliatewp-store-credit/affiliatewp-store-credit.php Passed 13 tests
"AffiliateWP - Store Credit" version 2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Pay AffiliateWP referrals as store credit
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,336 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 564 | 1,477 | 1,332 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.92 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 3 | 23.08% |
▷ Concrete classes | 10 | 76.92% |
▷ Final classes | 1 | 10.00% |
Methods | 120 | |
▷ Static methods | 1 | 0.83% |
▷ Public methods | 71 | 59.17% |
▷ Protected methods | 32 | 26.67% |
▷ Private methods | 17 | 14.17% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
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