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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.02ms] Passed 4 tests
A check of server-side resources used by My Affiliate Link
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 40.68 ▼10.93 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.69 ▼0.68 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 44.17 ▼12.96 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.32 ▼7.49 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.19 ▲6.19 |
My Affiliate Link /wp-admin/options-general.php?page=my-affiliate-link | 3.30 | 31.84 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 15 new options
New WordPress options |
---|
my-affiliate-link-onclick |
widget_recent-posts |
theysaidso_admin_options |
my-affiliate-link-amazontrackingid |
widget_recent-comments |
my-affiliate-link-nofollow |
widget_theysaidso_widget |
my-affiliate-link-siteurl |
can_compress_scripts |
my-affiliate-link-childsep |
... |
Browser metrics Passed 4 tests
A check of browser resources used by My Affiliate Link
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.48 ▲0.29 | 1.79 ▼0.42 | 47.77 ▲10.75 |
Dashboard /wp-admin | 2,207 ▲19 | 5.85 ▲0.84 | 109.56 ▼0.75 | 42.59 ▼5.15 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▼0.01 | 38.55 ▲2.01 | 31.50 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,538 ▲18 | 23.26 ▲0.10 | 603.81 ▼69.23 | 50.44 ▼8.90 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.19 ▼0.01 | 98.37 ▼5.77 | 40.92 ▼1.92 |
My Affiliate Link /wp-admin/options-general.php?page=my-affiliate-link | 905 | 2.03 | 25.37 | 38.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- my-affiliate-link-amazontrackingid
- widget_recent-comments
- my-affiliate-link-siteurl
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- my-affiliate-link-cssclass
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/my-affiliate-link/my-affiliate-link.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/my-affiliate-link/includes/shortcodes/mal_affiliate_link.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/my-affiliate-link/admin/my_affiliate_action_links.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/my-affiliate-link/admin/class-my-affiliate-link-admin.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/my-affiliate-link/includes/shortcodes/mal_affiliate_button.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/my-affiliate-link/includes/shortcodes/mal_amazon_link.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: affiliate, link cloaking, link cloaker, affiliate link management, clickmeter
my-affiliate-link/my-affiliate-link.php Passed 13 tests
This is the main PHP file of "My Affiliate Link" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Generate affiliate links for use with any link cloaking service or plugin via shortcodes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin371 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 56 | 81 | 371 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin