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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.83ms] Passed 4 tests
Analyzing server-side resources used by Filter for Amazon Associates links
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 38.27 ▲11.57 |
Dashboard /wp-admin | 3.07 ▲0.02 | 45.09 ▼0.78 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 41.67 ▼3.35 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 92.49 ▼569.31 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 34.62 ▲2.14 |
Filter Amazon Links /wp-admin/options-general.php?page=amazon-link-filter/index.php | 2.99 | 28.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Filter for Amazon Associates links
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.02 ▲0.31 | 9.29 ▲0.55 | 46.28 ▲1.50 |
Dashboard /wp-admin | 2,978 ▲47 | 5.88 ▼0.03 | 133.74 ▼6.83 | 111.88 ▲8.37 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.00 | 62.09 ▼1.59 | 88.85 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,875 ▲203 | 19.12 ▲0.23 | 372.01 ▼13.33 | 108.42 ▲4.92 |
Media Library /wp-admin/upload.php | 1,815 ▲2 | 5.02 ▲0.00 | 149.01 ▲7.77 | 121.49 ▼0.68 |
Filter Amazon Links /wp-admin/options-general.php?page=amazon-link-filter/index.php | 1,063 | 2.10 | 54.08 | 74.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/filter-amazon-associates-links/index.php:89
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: affiliate, amazon, email, feed
filter-amazon-associates-links/index.php 92% from 13 tests
This is the main PHP file of "Filter for Amazon Associates links" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("filter-amazon-associates-links.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected70 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 34 | 70 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected