Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.51ms] Passed 4 tests
This is a short check of server-side resources used by Add & Replace Affiliate Links for Amazon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.70 ▼16.89 |
Dashboard /wp-admin | 3.41 ▲0.11 | 44.68 ▼5.64 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.18 ▼1.91 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 89.02 ▼1.11 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 36.31 ▼1.59 |
Update Links /wp-admin/admin.php?page=uralp-upd-amazon-plugin | 3.33 | 39.40 |
Updated Pages /wp-admin/admin.php?page=uralp-upd-amazon-updated | 3.30 | 33.15 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_upd_amazon_plugin |
wp_upd_amazon_updated_pages |
wp_upd_amazon_jobs_log |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Add & Replace Affiliate Links for Amazon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.65 ▼0.68 | 2.03 ▼0.18 | 40.03 ▼9.22 |
Dashboard /wp-admin | 2,233 ▲45 | 5.79 ▼0.10 | 96.63 ▼20.35 | 40.74 ▼7.37 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.06 ▲0.06 | 39.99 ▲2.75 | 36.14 ▲2.60 |
Add New Post /wp-admin/post-new.php | 1,563 ▲30 | 23.23 ▼0.03 | 666.14 ▼16.15 | 55.33 ▼8.24 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.23 ▼0.04 | 95.92 ▼8.69 | 42.50 ▲0.72 |
Update Links /wp-admin/admin.php?page=uralp-upd-amazon-plugin | 1,143 | 2.15 | 33.12 | 65.43 |
Updated Pages /wp-admin/admin.php?page=uralp-upd-amazon-updated | 799 | 2.02 | 21.87 | 25.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_upd_amazon_jobs_log
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=uralp-upd-amazon-plugin
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/add-replace-affiliate-links-for-amazon/upd-amazon.php+291
Trying to get property 'is_old' of non-object
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
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/add-replace-affiliate-links-for-amazon/templates/schedule-settings.php:28
- > PHP Fatal error
Uncaught Error: Class 'URALP_UpdAmazonPlugin' not found in wp-content/plugins/add-replace-affiliate-links-for-amazon/templates/upd-amazon-plugin.php:56
- > PHP Fatal error
Uncaught Error: Class 'URALP_UpdAmazonPlugin' not found in wp-content/plugins/add-replace-affiliate-links-for-amazon/templates/updated-records.php:4
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (No screenshots available)
add-replace-affiliate-links-for-amazon/upd-amazon-plugin.php 92% from 13 tests
Analyzing the main PHP file in "Add & Replace Affiliate Links for Amazon" version 1.0.6
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-replace-affiliate-links-for-amazon.php" instead of "upd-amazon-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,225 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 133 | 31 | 1,225 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 17 | 89.47% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 11 | 78.57% |
▷ Anonymous functions | 3 | 21.43% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.04MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rating.png | 4.84KB | 4.55KB | ▼ 5.84% |
images/websiteflip-logo.png | 39.66KB | 39.82KB | 0.00% |