Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.83ms] Passed 4 tests
An overview of server-side resources used by Affiliate Link Tracker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.41 ▼5.20 |
Dashboard /wp-admin | 3.37 ▲0.06 | 52.04 ▼4.34 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 58.63 ▲4.25 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 89.08 ▼9.14 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.60 ▼0.63 |
Affiliate Links /wp-admin/options-general.php?page=aff_lnk_options | 3.25 | 34.57 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affiliate Link Tracker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.72 ▲0.31 | 1.54 ▼0.84 | 37.46 ▼5.92 |
Dashboard /wp-admin | 2,201 ▲21 | 5.64 ▲0.07 | 93.75 ▲0.21 | 44.48 ▲0.19 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▲0.02 | 42.59 ▲2.21 | 37.15 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 18.42 ▼4.73 | 644.30 ▼39.42 | 68.73 ▼11.21 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.26 ▲0.07 | 97.49 ▼7.14 | 40.81 ▼3.89 |
Affiliate Links /wp-admin/options-general.php?page=aff_lnk_options | 994 | 2.00 | 24.30 | 31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/affiliate-link-tracker/affiliate-link-tracker.php+248
Undefined index: utm_source
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/affiliate-link-tracker/affiliate-link-tracker.php:29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=aff_lnk_options
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=aff_lnk_options 140:32 Uncaught SyntaxError: Unexpected token '='
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
affiliate-link-tracker/affiliate-link-tracker.php Passed 13 tests
The primary PHP file in "Affiliate Link Tracker" version 0.2 is used by WordPress to initiate all plugin functionality
88 characters long description:
Advanced affiliate link tracker for tracking where your affiliate conversions come from.
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 detected234 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 25 | 234 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
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 | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected