Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▲2.70ms] Passed 4 tests
This is a short check of server-side resources used by Easy Affiliate Links
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.30 ▲3.31 |
Dashboard /wp-admin | 3.49 ▲0.19 | 49.70 ▲1.38 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 56.85 ▲7.15 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 93.46 ▼0.41 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 41.61 ▲6.53 |
Tools /wp-admin/admin.php?page=eafl_tools | 3.41 | 38.23 |
Import & Export /wp-admin/admin.php?page=eafl_import_export | 3.41 | 37.47 |
Migration /wp-admin/admin.php?page=eafl_migration | 3.41 | 36.56 |
Link Usage /wp-admin/admin.php?page=eafl_find_relations | 3.41 | 52.03 |
Settings /wp-admin/admin.php?page=bv_settings_eafl | 3.40 | 34.30 |
FAQ & Support /wp-admin/admin.php?page=eafl_faq | 3.41 | 40.14 |
Manage /wp-admin/admin.php?page=easyaffiliatelinks | 3.38 | 37.84 |
Click Statistics /wp-admin/admin.php?page=eafl_statistics | 3.41 | 35.53 |
Upgrade EAFL /wp-admin/admin.php?page=eafl_addons | 3.41 | 36.72 |
Server storage [IO: ▲3.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 263 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_eafl_relations |
wp_eafl_clicks |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
eafl_flush |
eafl_activated |
can_compress_scripts |
widget_recent-comments |
eafl_click_db_version |
eafl_relation_db_version |
eafl_migrated_to_version |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Easy Affiliate Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 15.83 ▲1.55 | 2.92 ▲1.08 | 42.19 ▼1.62 |
Dashboard /wp-admin | 2,263 ▲72 | 7.57 ▲1.67 | 186.97 ▲87.09 | 39.87 ▼0.49 |
Posts /wp-admin/edit.php | 2,159 ▲70 | 3.82 ▲1.76 | 76.56 ▲33.84 | 35.69 ▼3.57 |
Add New Post /wp-admin/post-new.php | 6,410 ▲4,868 | 26.61 ▲8.53 | 972.99 ▲358.27 | 37.41 ▼7.98 |
Media Library /wp-admin/upload.php | 1,458 ▲73 | 5.60 ▲1.42 | 119.73 ▲21.59 | 43.95 ▲1.36 |
Tools /wp-admin/admin.php?page=eafl_tools | 887 | 3.78 | 49.33 | 27.05 |
Import & Export /wp-admin/admin.php?page=eafl_import_export | 874 | 3.78 | 49.46 | 32.31 |
Migration /wp-admin/admin.php?page=eafl_migration | 835 | 3.76 | 47.87 | 22.73 |
Link Usage /wp-admin/admin.php?page=eafl_find_relations | 854 | 3.84 | 51.06 | 22.24 |
Settings /wp-admin/admin.php?page=bv_settings_eafl | 1,748 | 7.15 | 135.14 | 63.76 |
FAQ & Support /wp-admin/admin.php?page=eafl_faq | 1,051 | 7.66 | 63.12 | 44.84 |
Manage /wp-admin/admin.php?page=easyaffiliatelinks | 1,613 | 5.49 | 141.49 | 40.86 |
Click Statistics /wp-admin/admin.php?page=eafl_statistics | 855 | 3.77 | 48.62 | 23.95 |
Upgrade EAFL /wp-admin/admin.php?page=eafl_addons | 913 | 3.78 | 49.60 | 28.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 2 tables
- wp_eafl_relations
- wp_eafl_clicks
- This plugin does not fully uninstall, leaving 11 options in the database
- can_compress_scripts
- eafl_activated
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- eafl_flush
- eafl_migrated_to_version
- widget_recent-posts
- eafl_relation_db_version
- eafl_click_db_version
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-affiliate-links/templates/admin/menu/import-export/export-csv.php
- > /wp-content/plugins/easy-affiliate-links/templates/admin/menu/import-export/export-xml.php
- 78× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-affiliate-links/includes/admin/class-eafl-feedback.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-affiliate-links/includes/class-eafl-i18n.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/easy-affiliate-links/templates/admin/menu/faq.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/easy-affiliate-links/templates/admin/menu/migration.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-affiliate-links/includes/admin/menu/class-eafl-admin-menu-faq.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-affiliate-links/includes/admin/class-eafl-migrations.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-affiliate-links/includes/public/api/class-eafl-api-manage-categories.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-affiliate-links/templates/settings/group-shortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-affiliate-links/includes/admin/tools/class-eafl-tools-find-relations.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-affiliate-links/includes/admin/menu/class-eafl-admin-menu.php:28
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: links, cloaking, shortlink, affiliate
easy-affiliate-links/easy-affiliate-links.php Passed 13 tests
The main file in "Easy Affiliate Links" v. 3.7.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
Easily manage and cloak all your affiliate links.
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
There were no executable files found in this plugin52,291 lines of code in 252 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 94 | 8,973 | 4,320 | 41,423 |
PHP | 93 | 1,165 | 3,554 | 8,135 |
CSS | 5 | 86 | 29 | 1,376 |
Sass | 26 | 221 | 4 | 1,320 |
SVG | 33 | 0 | 0 | 33 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
An overview 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.42 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 1 | 1.64% |
▷ Concrete classes | 60 | 98.36% |
▷ Final classes | 0 | 0.00% |
Methods | 390 | |
▷ Static methods | 232 | 59.49% |
▷ Public methods | 320 | 82.05% |
▷ Protected methods | 63 | 16.15% |
▷ Private methods | 7 | 1.79% |
Functions | 14 | |
▷ Named functions | 3 | 21.43% |
▷ Anonymous functions | 11 | 78.57% |
Constants | 94 | |
▷ Global constants | 8 | 8.51% |
▷ Class constants | 86 | 91.49% |
▷ Public constants | 86 | 100.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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/faq/editor-button.png | 16.88KB | 5.83KB | ▼ 65.48% |
assets/images/icon-128x128.png | 9.14KB | 3.54KB | ▼ 61.30% |
assets/images/icon-20x20.png | 1.87KB | 0.99KB | ▼ 47.32% |