Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.61ms] Passed 4 tests
Analyzing server-side resources used by AffiliateWP - Force Pending Referrals
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.57 ▼0.94 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.23 ▼9.69 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.40 ▼1.53 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.29 ▼10.26 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 35.93 ▲1.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by AffiliateWP - Force Pending Referrals
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲46 | 14.80 ▲0.41 | 1.81 ▼0.75 | 43.91 ▼5.73 |
Dashboard /wp-admin | 2,212 ▲27 | 5.88 ▲1.02 | 110.98 ▼10.18 | 42.55 ▼0.57 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.05 | 35.31 ▼3.34 | 33.94 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.43 ▼5.72 | 686.01 ▲4.29 | 50.15 ▼4.05 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.16 ▼0.03 | 98.63 ▼1.24 | 42.28 ▼3.39 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
No output text or server-side errors detected on direct access of PHP files
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 97% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
affiliatewp-force-pending-referrals/affiliatewp-force-pending-referrals.php Passed 13 tests
Analyzing the main PHP file in "AffiliateWP - Force Pending Referrals" version 1.2
38 characters long description:
Forces referrals to be "pending" first
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected645 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 219 | 931 | 645 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 2 | 40.00% |
▷ Concrete classes | 3 | 60.00% |
▷ Final classes | 1 | 33.33% |
Methods | 71 | |
▷ Static methods | 2 | 2.82% |
▷ Public methods | 32 | 45.07% |
▷ Protected methods | 22 | 30.99% |
▷ Private methods | 17 | 23.94% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin