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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.74ms] Passed 4 tests
Analyzing server-side resources used by AffiliateWP - WooCommerce Redirect Affiliates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.19 ▼1.34 |
Dashboard /wp-admin | 3.36 ▲0.06 | 51.79 ▼11.28 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 54.70 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.30 ▼5.55 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.57 ▲1.59 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AffiliateWP - WooCommerce Redirect Affiliates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.72 ▲0.44 | 1.88 ▲0.26 | 40.88 ▼3.86 |
Dashboard /wp-admin | 2,198 ▲18 | 5.52 ▼0.11 | 85.60 ▼1.81 | 42.18 ▲2.63 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.00 | 40.25 ▲0.08 | 38.98 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.98 ▼0.09 | 675.12 ▼4.18 | 58.61 ▲11.46 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.10 | 104.29 ▼9.37 | 47.51 ▼1.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
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
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
affiliatewp-woocommerce-redirect-affiliates/affiliatewp-woocommerce-redirect-affiliates.php Passed 13 tests
This is the main PHP file of "AffiliateWP - WooCommerce Redirect Affiliates" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
94 characters long description:
Redirect affiliates to their affiliate area when they login via WooCommerce's /my-account page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected628 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 214 | 954 | 628 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.62 |
▷ 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 | 73 | |
▷ Static methods | 4 | 5.48% |
▷ Public methods | 29 | 39.73% |
▷ Protected methods | 24 | 32.88% |
▷ Private methods | 20 | 27.40% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin