Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.07MB] [CPU: ▲7.09ms] 75% from 4 tests
A check of server-side resources used by ThirstyAffiliates - Affiliate Links, Link Branding, Link Tracking & Marketing Plugin
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 703.74ms on /wp-admin/edit-tags.php?taxonomy=thirstylink-category&post_type=thirstylink)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.48 ▲2.01 | 51.45 ▲11.81 |
Dashboard /wp-admin | 5.43 ▲2.08 | 55.92 ▼4.95 |
Posts /wp-admin/edit.php | 5.49 ▲2.12 | 66.27 ▲19.19 |
Add New Post /wp-admin/post-new.php | 8.16 ▲2.27 | 99.64 ▲3.90 |
Media Library /wp-admin/upload.php | 5.29 ▲2.06 | 52.29 ▲17.58 |
Settings /wp-admin/edit.php?post_type=thirstylink&page=thirsty-settings | 5.29 | 50.33 |
Import CSV /wp-admin/edit.php?post_type=thirstylink&page=thirsty_import | 5.28 | 47.31 |
Reports /wp-admin/edit.php?post_type=thirstylink&page=thirsty-reports | 5.28 | 46.82 |
Link Categories /wp-admin/edit-tags.php?taxonomy=thirstylink-category&post_type=thirstylink | 5.36 | 703.74 |
Affiliate Links /wp-admin/edit.php?post_type=thirstylink | 5.44 | 58.38 |
Amazon Import /wp-admin/edit.php?post_type=thirstylink&page=amazon_import | 5.28 | 44.52 |
New Affiliate Link /wp-admin/post-new.php?post_type=thirstylink | 5.58 | 64.91 |
Export CSV /wp-admin/edit.php?post_type=thirstylink&page=thirsty_export | 5.28 | 52.60 |
Event Notifications /wp-admin/edit.php?post_type=thirstylink&page=thirsty_event_notifications | 5.29 | 47.10 |
Server storage [IO: ▲2.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 204 new files
Database: 2 new tables, 24 new options
New tables |
---|
wp_ta_link_clicks_meta |
wp_ta_link_clicks |
New WordPress options |
---|
ta_enable_bot_crawl_blocker_script |
ta_database_tables_created |
ta_used_link_prefixes |
ta_link_prefix_custom |
ta_clean_up_plugin_options |
db_upgraded |
ta_guided_tour_status |
widget_theysaidso_widget |
ta_settings_initialized |
thirstyaff_notifications |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for ThirstyAffiliates - Affiliate Links, Link Branding, Link Tracking & Marketing Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,980 ▲218 | 13.52 ▼1.19 | 12.39 ▲10.72 | 38.11 ▼4.29 |
Dashboard /wp-admin | 2,298 ▲118 | 5.64 ▲0.03 | 102.50 ▲2.47 | 41.18 ▼3.27 |
Posts /wp-admin/edit.php | 2,208 ▲105 | 2.09 ▲0.15 | 45.03 ▲7.44 | 38.10 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,603 ▲67 | 23.55 ▲0.40 | 668.90 ▼28.37 | 42.37 ▼6.81 |
Media Library /wp-admin/upload.php | 1,508 ▲111 | 4.31 ▲0.09 | 102.40 ▲3.34 | 44.58 ▲2.26 |
Settings /wp-admin/edit.php?post_type=thirstylink&page=thirsty-settings | 1,588 | 2.86 | 62.33 | 53.01 |
Import CSV /wp-admin/edit.php?post_type=thirstylink&page=thirsty_import | 1,244 | 2.27 | 25.41 | 42.97 |
Reports /wp-admin/edit.php?post_type=thirstylink&page=thirsty-reports | 1,324 | 2.72 | 67.58 | 42.34 |
Link Categories /wp-admin/edit-tags.php?taxonomy=thirstylink-category&post_type=thirstylink | 1,382 | 2.24 | 31.61 | 31.91 |
Affiliate Links /wp-admin/edit.php?post_type=thirstylink | 1,601 | 2.52 | 41.76 | 42.60 |
Amazon Import /wp-admin/edit.php?post_type=thirstylink&page=amazon_import | 1,337 | 2.27 | 27.91 | 37.71 |
New Affiliate Link /wp-admin/post-new.php?post_type=thirstylink | 2,734 | 4.80 | 85.63 | 123.67 |
Export CSV /wp-admin/edit.php?post_type=thirstylink&page=thirsty_export | 1,230 | 2.27 | 31.42 | 41.88 |
Event Notifications /wp-admin/edit.php?post_type=thirstylink&page=thirsty_event_notifications | 1,496 | 2.30 | 28.84 | 38.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_ta_link_clicks_meta
- wp_ta_link_clicks
- Zombie WordPress options detected upon uninstall: 23 options
- ta_link_redirect_type
- ta_activation_time
- ta_enable_javascript_frontend_redirect
- ta_enable_bot_crawl_blocker_script
- ta_dismiss_marketing_notice_option
- ta_migration_complete_flag
- widget_recent-comments
- ta_show_enable_js_redirect_notice
- theysaidso_admin_options
- ta_link_prefix
- ...
Smoke tests 25% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/thirstyaffiliates/views/promotion.php
- > /wp-content/plugins/thirstyaffiliates/Models/Notifications.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/Marketing.php:19
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/Affiliate_Links_CPT.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/Guided_Tour.php:19
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/Link_Fixer.php:20
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/Stats_Reporting.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/Affiliate_Link_Attachment.php:18
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/Link_Picker.php:20
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/REST_API.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/thirstyaffiliates/views/linkpicker/advance-link-picker.php:5
- > PHP Fatal error
Uncaught Error: Interface 'ThirstyAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/thirstyaffiliates/Models/Shortcodes.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=thirstylink
- > Deprecation (warning) in unknown
/wp-content/plugins/thirstyaffiliates/js/app/affiliate_link_page/dist/affiliate-link-page.js?ver=3.10.21 23 Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 38 tag instead of maximum 10
thirstyaffiliates/thirstyaffiliates.php 92% from 13 tests
The main PHP file in "ThirstyAffiliates - Affiliate Links, Link Branding, Link Tracking & Marketing Plugin" ver. 3.10.21 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
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
Everything looks great! No dangerous files found in this plugin40,531 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 11 | 0 | 0 | 24,300 |
PHP | 43 | 2,816 | 4,296 | 6,910 |
JavaScript | 59 | 1,324 | 1,010 | 5,513 |
CSS | 21 | 191 | 33 | 1,924 |
PO File | 1 | 297 | 329 | 1,081 |
Sass | 15 | 152 | 3 | 792 |
XML | 1 | 0 | 0 | 8 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 44.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 352 | |
▷ Static methods | 19 | 5.40% |
▷ Public methods | 315 | 89.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 37 | 10.51% |
Functions | 14 | |
▷ Named functions | 2 | 14.29% |
▷ Anonymous functions | 12 | 85.71% |
Constants | 21 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 21 | 100.00% |
▷ Public constants | 21 | 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
16 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/b6a9a66c9b34aeba2f02831641b2a568.png | 1.30KB | 1.63KB | 0.00% |
css/lib/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.29KB | 0.15KB | ▼ 49.83% |
css/lib/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |
images/admin-review-notice-logo.png | 3.36KB | 3.29KB | ▼ 2.21% |
css/lib/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.36KB | 0.15KB | ▼ 59.57% |