Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/affiliateimporteram/src/AIDN/Utils/Ajax.php+41
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
Server metrics [RAM: ▼1.19MB] [CPU: ▲46.76ms] Passed 4 tests
This is a short check of server-side resources used by AffiliateImporterAm
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.49 ▲1.02 | 52.45 ▲12.81 |
Dashboard /wp-admin | 2.77 ▼0.58 | 137.80 ▲76.46 |
Posts /wp-admin/edit.php | 2.77 ▼0.59 | 127.75 ▲78.49 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.12 | 147.65 ▲42.55 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 91.09 ▲55.22 |
Amazon /wp-admin/admin.php?page=aidn-add | 2.77 | 136.43 |
Shedule /wp-admin/admin.php?page=aidn-schedule | 2.77 | 138.11 |
Support /wp-admin/admin.php?page=aidn-support | 2.77 | 148.86 |
Backup / Restore /wp-admin/admin.php?page=aidn-backup | 2.77 | 143.02 |
Affiliate Am /wp-admin/admin.php?page=aidn | 2.77 | 126.70 |
Settings /wp-admin/admin.php?page=aidn-settings | 2.77 | 130.88 |
Status /wp-admin/admin.php?page=aidn-status | 2.77 | 143.73 |
Statistics /wp-admin/admin.php?page=aidn-stats | 2.77 | 132.30 |
Server storage [IO: ▲2.43MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 108 new files
Database: 7 new tables, 8 new options
New tables |
---|
wp_aidn_price_formula |
wp_aidn_account |
wp_aidn_goods_archive |
wp_aidn_stats |
wp_aidn_blacklist |
wp_aidn_goods |
wp_aidn_log |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
aidn_db_version |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AffiliateImporterAm
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲169 | 13.78 ▼0.60 | 1.88 ▲0.19 | 42.83 ▲1.50 |
Dashboard /wp-admin | 2,306 ▲115 | 5.68 ▲0.80 | 105.64 ▲3.32 | 88.06 ▲44.93 |
Posts /wp-admin/edit.php | 2,189 ▲100 | 2.68 ▲0.66 | 38.49 ▲1.58 | 58.03 ▲24.13 |
Add New Post /wp-admin/post-new.php | 1,611 ▲78 | 23.47 ▲0.06 | 633.02 ▼61.45 | 34.22 ▼18.68 |
Media Library /wp-admin/upload.php | 1,494 ▲106 | 4.89 ▲0.65 | 101.14 ▼9.02 | 74.55 ▲27.42 |
Amazon /wp-admin/admin.php?page=aidn-add | 886 | 2.54 | 29.30 | 24.98 |
Shedule /wp-admin/admin.php?page=aidn-schedule | 1,168 | 2.38 | 37.94 | 51.47 |
Support /wp-admin/admin.php?page=aidn-support | 950 | 2.59 | 33.44 | 25.64 |
Backup / Restore /wp-admin/admin.php?page=aidn-backup | 1,151 | 2.25 | 35.40 | 54.02 |
Affiliate Am /wp-admin/admin.php?page=aidn | 1,155 | 2.31 | 33.69 | 59.59 |
Settings /wp-admin/admin.php?page=aidn-settings | 2,098 | 2.33 | 35.19 | 65.46 |
Status /wp-admin/admin.php?page=aidn-status | 1,002 | 1.74 | 19.22 | 31.94 |
Statistics /wp-admin/admin.php?page=aidn-stats | 1,135 | 2.35 | 35.70 | 34.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/affiliateimporteram/src/AIDN/Utils/Ajax.php+41
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_recent-comments
- aidn_db_version
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aidn-stats
- > Warning in wp-content/plugins/affiliateimporteram/src/AIDN/Utils/Ajax.php+41
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aidn-stats
- > Warning in wp-content/plugins/affiliateimporteram/src/AIDN/Utils/Ajax.php+41
file_get_contents(http://...@potrivit.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
- 49 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aidn-stats
- > Notice in wp-content/plugins/affiliateimporteram/layout/toolbar.php+55
Undefined index: class
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aidn-settings
- > Notice in wp-content/plugins/affiliateimporteram/src/AIDN/Utils/Utils.php+57
Undefined index: parent
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aidn-status
- > Notice in wp-content/plugins/affiliateimporteram/layout/status.php+28
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=aidn-status
- > Error in wp-content/plugins/affiliateimporteram/layout/status.php+78
Uncaught Error: Call to undefined function woocommerce_let_to_num() in wp-content/plugins/affiliateimporteram/layout/status.php:78
Stack trace:
#0 wp-content/plugins/affiliateimporteram/src/Dnolbon/Aidn/Pages/Status.php(11): include()
#1 wp-includes/class-wp-hook.php(310): Dnolbon\Aidn\Pages\Status->render()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/affiliateimporteram/layout/backup_restore.php
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliateimporteram/src/AIDN/Utils/Ajax.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/affiliateimporteram/layout/stats.php:16
- > PHP Fatal error
Uncaught Error: Class 'AIDN_AbstractConfigurator' not found in wp-content/plugins/affiliateimporteram/src/AIDN/Modules/amazon/AEIDN_AmazonConfigurator.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliateimporteram/screenoptions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/affiliateimporteram/src/AIDN/Modules/amazon/view/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/affiliateimporteram/layout/toolbar.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/affiliateimporteram/src/AIDN/Pages/DashboardPage.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/affiliateimporteram/src/AIDN/Pages/DashboardPage.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/affiliateimporteram/AffiliateImporterAm.php:21
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliateimporteram/src/AIDN/Pages/DashboardPage.php on line 6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=aidn-support
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'replace')" "TypeError: Cannot read properties of undefined (reading 'replace')\n at setActivePage (/wp-admin/admin.php?page=aidn-support:233:87)\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=aidn-support:223:9)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=aidn-support
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
affiliateimporteram/AffiliateImporterAm.php 92% from 13 tests
The primary PHP file in "AffiliateImporterAm" version 1.0.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("affiliateimporteram.php" instead of "AffiliateImporterAm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin15,876 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 1,360 | 1,336 | 6,774 |
CSS | 7 | 860 | 21 | 4,846 |
JavaScript | 6 | 409 | 68 | 2,805 |
SVG | 2 | 0 | 0 | 1,301 |
JSON | 1 | 0 | 0 | 150 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 21.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 4 | 10.81% |
▷ Concrete classes | 33 | 89.19% |
▷ Final classes | 0 | 0.00% |
Methods | 304 | |
▷ Static methods | 32 | 10.53% |
▷ Public methods | 255 | 83.88% |
▷ Protected methods | 40 | 13.16% |
▷ Private methods | 9 | 2.96% |
Functions | 36 | |
▷ Named functions | 34 | 94.44% |
▷ Anonymous functions | 2 | 5.56% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.84MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/toolbar/dashboard.png | 1.69KB | 1.17KB | ▼ 30.92% |
assets/img/toolbar/settings.png | 2.51KB | 2.00KB | ▼ 20.14% |
assets/img/toolbar/dashboard_active.png | 1.71KB | 1.17KB | ▼ 31.95% |
assets/img/toolbar/csv.png | 1.31KB | 1.25KB | ▼ 4.48% |
assets/img/toolbar/backup.png | 2.75KB | 2.19KB | ▼ 20.50% |