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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.04ms] Passed 4 tests
Analyzing server-side resources used by AffiliateWP - Affiliate Product Rates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 48.85 ▲10.45 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.45 ▼3.24 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.10 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.69 ▼6.35 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.59 ▼2.38 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AffiliateWP - Affiliate Product Rates
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲6 | 14.38 ▲0.10 | 1.64 ▼0.46 | 43.51 ▲0.02 |
Dashboard /wp-admin | 2,198 ▲21 | 5.49 ▼0.19 | 87.35 ▼8.06 | 38.47 ▼1.21 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.07 | 41.20 ▲1.85 | 35.66 ▲2.15 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.67 ▲5.69 | 675.38 ▲34.63 | 63.89 ▼8.98 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.06 | 101.94 ▲3.92 | 44.51 ▲2.83 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
affiliatewp-affiliate-product-rates/affiliatewp-affiliate-product-rates.php Passed 13 tests
The entry point to "AffiliateWP - Affiliate Product Rates" version 1.2.1 is a PHP file that has certain tags in its header comment area
40 characters long description:
Set per-affiliate product referral rates
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 plugin4,171 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 564 | 402 | 2,598 |
PHP | 9 | 343 | 1,083 | 960 |
CSS | 2 | 124 | 19 | 562 |
PO File | 1 | 16 | 17 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.29 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 1 | 20.00% |
Methods | 82 | |
▷ Static methods | 2 | 2.44% |
▷ Public methods | 42 | 51.22% |
▷ Protected methods | 22 | 26.83% |
▷ Private methods | 18 | 21.95% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/css/select2.png | 0.60KB | 0.99KB | 0.00% |