Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.97ms] Passed 4 tests
A check of server-side resources used by WP affiliate link
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.83 ▲5.69 |
Dashboard /wp-admin | 3.38 ▲0.04 | 50.18 ▼12.17 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 56.05 ▲10.09 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.45 ▼6.30 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.05 ▲0.89 |
All affiliate link /wp-admin/edit.php?post_type=affiliate | 3.33 | 40.48 |
Add New /wp-admin/post-new.php?post_type=affiliate | 3.34 | 45.89 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP affiliate link
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.28 ▼0.35 | 1.74 ▲0.20 | 45.82 ▲4.39 |
Dashboard /wp-admin | 2,216 ▲36 | 5.56 ▼0.04 | 87.41 ▼0.71 | 39.64 ▼1.26 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.02 ▲0.07 | 39.21 ▲2.43 | 39.65 ▲6.89 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.16 ▼0.12 | 642.19 ▼41.75 | 68.98 ▲12.22 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.25 ▲0.05 | 94.68 ▼2.38 | 43.38 ▼1.61 |
All affiliate link /wp-admin/edit.php?post_type=affiliate | 1,088 | 1.96 | 31.88 | 29.69 |
Add New /wp-admin/post-new.php?post_type=affiliate | 1,485 | 2.49 | 48.32 | 60.09 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-affiliate-link/affiliate_link_cloaker.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-affiliate-link/includes/affi_functions.php:53
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (shortcode generator), #2 (shortcode on text editor), #3 (priview on front end)
wp-affiliate-link/affiliate_link_cloaker.php 92% from 13 tests
"WP affiliate link" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-affiliate-link.php" instead of "affiliate_link_cloaker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected179 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 52 | 136 |
CSS | 1 | 0 | 0 | 43 |
PHP code Passed 2 tests
Analyzing 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.24 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin