Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.99MB] [CPU: ▼45.53ms] Passed 4 tests
Analyzing server-side resources used by Get Affiliate Link
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.49 | 17.69 ▼33.94 |
Dashboard /wp-admin | 3.03 ▼0.28 | 17.60 ▼38.48 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 23.33 ▼25.81 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 21.39 ▼83.87 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 18.93 ▼16.99 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 53 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_get_affiliate_link |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
get_affiliate_link_version |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Get Affiliate Link
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲145 | 16.88 ▲2.64 | 7.64 ▲5.11 | 38.23 ▼9.75 |
Dashboard /wp-admin | 2,264 ▲73 | 7.39 ▲2.53 | 125.97 ▲2.84 | 40.38 ▼10.11 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 4.31 ▲2.25 | 54.40 ▲11.54 | 38.00 ▲4.37 |
Add New Post /wp-admin/post-new.php | 1,722 ▲203 | 22.95 ▼0.22 | 614.73 ▼18.10 | 24.91 ▼29.63 |
Media Library /wp-admin/upload.php | 1,449 ▲64 | 6.19 ▲2.03 | 111.50 ▲8.18 | 40.77 ▼5.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/get-affiliate-link/includes/lib/get-affiliate-link-path-checker.php+22
Undefined index: page
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_get_affiliate_link
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- get_affiliate_link_version
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
get-affiliate-link/get-affiliate-link.php 92% from 13 tests
The primary PHP file in "Get Affiliate Link" version 1.5.13 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected9,096 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 1,312 | 10,306 | 7,180 |
PHP | 24 | 585 | 1,153 | 1,731 |
PO File | 1 | 27 | 51 | 71 |
Markdown | 1 | 25 | 0 | 54 |
CSS | 2 | 18 | 19 | 39 |
HTML | 1 | 4 | 0 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.22 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 5 | 5.38% |
▷ Public methods | 74 | 79.57% |
▷ Protected methods | 9 | 9.68% |
▷ Private methods | 10 | 10.75% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
There were not PNG files found in your plugin