Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/amazon-affiliate-link-globalizer/amazon-link-globalizer.php+89
Non-static method WAALG::init_settings() should not be called statically
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.41ms] Passed 4 tests
This is a short check of server-side resources used by Amazon Affiliate Link Globalizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.43 ▼6.58 |
Dashboard /wp-admin | 3.32 ▲0.02 | 60.17 ▲6.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 55.88 ▼0.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.55 ▼0.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.73 ▼10.76 |
Woboq Amazon Affiliate Link Globalizer /wp-admin/options-general.php?page=waalg | 3.26 | 37.81 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Amazon Affiliate Link Globalizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.79 ▲0.23 | 1.63 ▼0.31 | 46.52 ▲0.94 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▲0.07 | 85.86 ▼6.84 | 40.52 ▼2.55 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.01 ▲0.04 | 35.14 ▲0.91 | 33.10 ▼4.66 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.33 ▼0.21 | 651.71 ▼37.68 | 66.76 ▲3.19 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.16 ▼0.06 | 109.79 ▼17.87 | 45.65 ▼9.39 |
Woboq Amazon Affiliate Link Globalizer /wp-admin/options-general.php?page=waalg | 1,202 | 2.03 | 25.48 | 27.93 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/amazon-affiliate-link-globalizer/uninstall.php
- > /wp-content/plugins/amazon-affiliate-link-globalizer/settings.php
- > /wp-content/plugins/amazon-affiliate-link-globalizer/amazon-link-globalizer.php
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 93% from 29 tests
readme.txt Passed 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
5 plugin tags: amazon affiliate, amazon, amazon associates, amazon partner, amazon localizer
amazon-affiliate-link-globalizer/amazon-link-globalizer.php 85% from 13 tests
The main file in "Amazon Affiliate Link Globalizer" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("amazon-affiliate-link-globalizer.php" instead of "amazon-link-globalizer.php")
- Description: Keep the plugin description shorter than 140 characters (currently 329 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin308 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 44 | 97 | 308 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 12 | |
▷ Static methods | 3 | 25.00% |
▷ Public methods | 8 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 33.33% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin