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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.65ms] Passed 4 tests
A check of server-side resources used by AffiliateWP - Allow Own Referrals
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.75 ▼1.15 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.15 ▼2.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.30 ▲4.09 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.84 ▼9.11 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.21 ▲2.52 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AffiliateWP - Allow Own Referrals
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.25 ▼1.33 | 2.03 ▲0.15 | 43.91 ▼3.76 |
Dashboard /wp-admin | 2,212 ▲27 | 6.06 ▲1.20 | 95.91 ▼9.25 | 39.06 ▼4.59 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.04 ▲0.01 | 38.52 ▲0.49 | 34.79 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 22.81 ▼0.33 | 621.39 ▼56.11 | 57.96 ▲8.03 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.23 ▼0.02 | 103.88 ▼1.69 | 46.12 ▼0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 13 tag instead of maximum 10
affiliatewp-allow-own-referrals/affiliatewp-allow-own-referrals.php Passed 13 tests
The main PHP file in "AffiliateWP - Allow Own Referrals" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Allows an affiliate to earn commission on their own referrals
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected626 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 214 | 947 | 626 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.60 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.61 |
▷ 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 | 72 | |
▷ Static methods | 4 | 5.56% |
▷ Public methods | 29 | 40.28% |
▷ Protected methods | 24 | 33.33% |
▷ Private methods | 19 | 26.39% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin