Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.94MB] [CPU: ▼54.63ms] Passed 4 tests
An overview of server-side resources used by iDatAffiliates Affiliate Link Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.29 ▼36.18 |
Dashboard /wp-admin | 2.07 ▼1.23 | 6.79 ▼41.86 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 6.28 ▼40.71 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.93 ▼99.75 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.70 ▼27.47 |
Affiliate Links /wp-admin/edit.php?post_type=idatlink | 2.07 | 5.70 |
Settings /wp-admin/edit.php?post_type=idatlink&page=idat-settings | 2.07 | 7.51 |
Link Categories /wp-admin/edit-tags.php?taxonomy=idatlink-category&post_type=idatlink | 2.07 | 6.12 |
New Affiliate Link /wp-admin/post-new.php?post_type=idatlink | 2.07 | 6.59 |
Server storage [IO: ▲4.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 107 new files
Database: 2 new tables, 17 new options
New tables |
---|
wp_idata_link_clicks_meta |
wp_idata_link_clicks |
New WordPress options |
---|
ta_clean_up_plugin_options |
ta_link_prefix_custom |
widget_recent-comments |
widget_recent-posts |
ta_activation_code_triggered |
ta_guided_tour_status |
ta_database_tables_created |
ta_migration_complete_flag |
db_upgraded |
ta_settings_initialized |
... |
Browser metrics Passed 4 tests
A check of browser resources used by iDatAffiliates Affiliate Link Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲89 | 13.22 ▼0.94 | 5.07 ▲3.01 | 42.80 ▼4.85 |
Dashboard /wp-admin | 2,247 ▲59 | 4.88 ▼1.04 | 97.01 ▼7.69 | 40.23 ▼2.55 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.04 ▲0.05 | 35.63 ▲1.53 | 30.26 ▼6.07 |
Add New Post /wp-admin/post-new.php | 1,564 ▲28 | 23.32 ▲0.02 | 597.85 ▲3.78 | 63.41 ▲16.91 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.20 ▼0.04 | 103.20 ▲3.80 | 41.82 ▼0.44 |
Affiliate Links /wp-admin/edit.php?post_type=idatlink | 1,212 | 2.48 | 43.72 | 31.74 |
Settings /wp-admin/edit.php?post_type=idatlink&page=idat-settings | 1,058 | 2.63 | 39.74 | 29.05 |
Link Categories /wp-admin/edit-tags.php?taxonomy=idatlink-category&post_type=idatlink | 1,303 | 2.15 | 29.83 | 28.56 |
New Affiliate Link /wp-admin/post-new.php?post_type=idatlink | 1,801 | 4.60 | 74.43 | 63.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/idataffiliates/Models/Guided_Tour.php+222
Undefined index: import-export-settings
- Zombie tables were found after uninstall: 2 tables
- wp_idata_link_clicks_meta
- wp_idata_link_clicks
- Zombie WordPress options were found after uninstall: 16 options
- ta_link_prefix
- ta_clean_up_plugin_options
- idatOptions
- ta_settings_initialized
- ta_installed_version
- ta_link_prefix_custom
- ta_migration_complete_flag
- widget_recent-comments
- widget_theysaidso_widget
- ta_used_link_prefixes
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=idatlink
- > Notice in wp-content/plugins/idataffiliates/Models/Guided_Tour.php+222
Undefined index: import-export-settings
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=idatlink
- > Notice in wp-content/plugins/idataffiliates/Models/Guided_Tour.php+232
Undefined index: help-settings
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
The following issues need your attention
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Affiliate_Links_CPT.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/idataffiliates/views/linkpicker/quick-add-affiliate-link.php:5
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Guided_Tour.php:19
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Rewrites_Redirection.php:17
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Shortcodes.php:17
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Link_Picker.php:19
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Marketing.php:19
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Stats_Reporting.php:20
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Affiliate_Link_Attachment.php:18
- > PHP Fatal error
Uncaught Error: Interface 'IDatAffiliates\\Interfaces\\Model_Interface' not found in wp-content/plugins/idataffiliates/Models/Migration.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=idatlink
- > Network (severe)
wp-content/plugins/idataffiliates/Models/css/bootstrap/js/bootstrap.min.js?ver=3.3.7 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=idatlink
- > Deprecation (warning) in unknown
/wp-content/plugins/idataffiliates/js/app/affiliate_link_page/dist/affiliate-link-page.js?ver=1.0.0 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: link, idat, affiliate, idataffiliates, affiliate link management
idataffiliates/idataffiliates.php Passed 13 tests
"iDatAffiliates Affiliate Link Manager" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
To link easily using simple affiliate link
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin27,512 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 3,340 | 2,269 | 13,199 |
CSS | 20 | 1,232 | 67 | 10,321 |
PHP | 31 | 2,078 | 3,228 | 3,992 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 27.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 245 | |
▷ Static methods | 16 | 6.53% |
▷ Public methods | 221 | 90.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 9.80% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 19 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 19 | 100.00% |
▷ Public constants | 19 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/lib/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
js/lib/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |