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.04MB] [CPU: ▼3.98ms] Passed 4 tests
An overview of server-side resources used by AffiliateWP - Affiliate Info
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 46.48 ▲5.61 |
Dashboard /wp-admin | 3.36 ▲0.01 | 53.66 ▼16.95 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 52.42 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.01 ▼3.33 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 50.64 ▲15.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
AffiliateWP - Affiliate Info: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.35 ▼0.37 | 1.66 ▼0.25 | 39.64 ▼5.37 |
Dashboard /wp-admin | 2,201 ▲26 | 5.58 ▼0.13 | 89.09 ▼46.48 | 38.01 ▼0.92 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▼0.02 | 39.16 ▼14.06 | 37.78 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.48 ▲0.55 | 615.23 ▼77.69 | 53.65 ▼1.62 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.11 ▼0.28 | 109.55 ▲9.91 | 49.09 ▲6.72 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/affiliatewp-affiliate-info/includes/class-shortcodes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/affiliatewp-affiliate-info/includes/class-admin.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
affiliatewp-affiliate-info/affiliatewp-affiliate-info.php Passed 13 tests
The main PHP script in "AffiliateWP - Affiliate Info" version 1.2 is automatically included on every request by WordPress
54 characters long description:
Show information based on the affiliate's referral URL
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin892 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 353 | 1,130 | 861 |
PO File | 1 | 6 | 6 | 31 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 1 | 14.29% |
Methods | 99 | |
▷ Static methods | 2 | 2.02% |
▷ Public methods | 59 | 59.60% |
▷ Protected methods | 22 | 22.22% |
▷ Private methods | 18 | 18.18% |
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 are no PNG files in this plugin