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.42MB] [CPU: ▲3.11ms] Passed 4 tests
This is a short check of server-side resources used by Amazon Affiliate Link Checker - AMZ Watcher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 44.45 ▲2.32 |
Dashboard /wp-admin | 3.75 ▲0.45 | 46.64 ▼3.56 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 51.71 ▲9.45 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 96.65 ▲15.21 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 38.02 ▲4.24 |
Server storage [IO: ▲20.20MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 43 new files
Database: 5 new tables, 9 new options
New tables |
---|
wp_amz_site_check |
wp_amz_all_jobs |
wp_amz_user_check |
wp_amz_jobs_details |
wp_amz_plugin_check |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
wpr_example_setting |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
amzw_failed_fetch |
widget_recent-posts |
amzw_settings_widget_enabled |
Browser metrics Passed 4 tests
Amazon Affiliate Link Checker - AMZ Watcher: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲25 | 14.25 ▼0.07 | 1.70 ▼0.25 | 43.86 ▼2.61 |
Dashboard /wp-admin | 2,205 ▲28 | 5.52 ▼0.08 | 95.92 ▼0.41 | 70.79 ▲23.32 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 1.97 ▲0.03 | 37.82 ▲0.98 | 34.39 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.12 ▲0.08 | 691.08 ▲103.90 | 52.55 ▲2.75 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.11 ▼0.08 | 95.29 ▼3.24 | 79.69 ▲37.03 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- amzw_settings_widget_enabled
- amzw_failed_fetch
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/amz-watcher/assets/includes/Widget.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/amz-watcher/includes/Widget.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
8 plugin tags: amazon, link alert, amazon affiliate plugin, amazon associates, affiliate plugin...
amz-watcher/amzwatcher.php 77% from 13 tests
The primary PHP file in "Amazon Affiliate Link Checker - AMZ Watcher" version 1.0.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("amz-watcher.php" instead of "amzwatcher.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,203 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 838 | 810 | 2,058 |
CSS | 1 | 15 | 1 | 111 |
JavaScript | 4 | 6 | 119 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 208 | |
▷ Static methods | 26 | 12.50% |
▷ Public methods | 182 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 12.50% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/amz.png | 16.40KB | 6.67KB | ▼ 59.31% |