Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.47ms] Passed 4 tests
Analyzing server-side resources used by Related Products For Amazon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 35.81 ▲8.29 |
Dashboard /wp-admin | 3.07 ▲0.02 | 50.67 ▲3.27 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 48.28 ▼0.18 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 96.59 ▼574.52 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 35.49 ▲1.54 |
Related Products for Amazon /wp-admin/options-general.php?page=related-products-for-amazon/amazonassociatesshowrelated.php | 2.99 | 30.26 |
Server storage [IO: ▲0.17MB] [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: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Related Products For Amazon: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.81 ▲0.19 | 7.32 ▼1.29 | 47.73 ▼3.35 |
Dashboard /wp-admin | 2,978 ▲44 | 5.90 ▼0.10 | 139.90 ▼10.84 | 128.10 ▲10.03 |
Posts /wp-admin/edit.php | 2,741 ▲5 | 2.82 ▲0.01 | 63.02 ▼2.84 | 87.80 ▼4.98 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.73 ▲0.24 | 402.05 ▲7.09 | 112.95 ▼4.81 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.04 ▲0.01 | 153.07 ▼10.67 | 128.48 ▲5.25 |
Related Products for Amazon /wp-admin/options-general.php?page=related-products-for-amazon/amazonassociatesshowrelated.php | 1,071 | 2.18 | 56.47 | 73.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/related-products-for-amazon/amazonassociatesshowrelated.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 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Administration panel.), #2 (Widget display example.), #3 (Short code placing example.)
related-products-for-amazon/amazonassociatesshowrelated.php 85% from 13 tests
"Related Products For Amazon" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 252 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("related-products-for-amazon.php" instead of "amazonassociatesshowrelated.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin71 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 8 | 71 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin