Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.56ms] Passed 4 tests
Server-side resources used by Affiliates Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 39.02 ▼2.53 |
Dashboard /wp-admin | 3.51 ▲0.21 | 55.04 ▲5.48 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 48.30 ▲2.39 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 84.84 ▼12.70 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 33.67 ▲2.61 |
Settings /wp-admin/admin.php?page=wpam-settings | 3.52 | 41.32 |
PayPal Mass Pay /wp-admin/admin.php?page=wpam-payments | 3.45 | 32.92 |
Admin Functions /wp-admin/admin.php?page=wpam-admin-functions | 3.40 | 31.11 |
Commissions /wp-admin/admin.php?page=wpam-commission | 3.48 | 34.89 |
Manage Payouts /wp-admin/admin.php?page=wpam-manage-payouts | 3.40 | 32.35 |
New Affiliate /wp-admin/admin.php?page=wpam-newaffiliate | 3.55 | 34.59 |
My Affiliates /wp-admin/admin.php?page=wpam-affiliates | 3.57 | 34.94 |
My Creatives /wp-admin/admin.php?page=wpam-creatives | 3.51 | 36.67 |
Click Tracking /wp-admin/admin.php?page=wpam-clicktracking | 3.46 | 33.49 |
Add-ons /wp-admin/admin.php?page=wpam-addons | 3.42 | 34.66 |
Server storage [IO: ▲4.22MB] [DB: ▲0.12MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 278 new files
Database: 11 new tables, 33 new options
New tables |
---|
wp_wpam_affiliates_fields |
wp_wpam_tracking_tokens_purchase_logs |
wp_wpam_affiliates |
wp_wpam_paypal_logs |
wp_wpam_tracking_tokens |
wp_wpam_actions |
wp_wpam_impressions |
wp_wpam_events |
wp_wpam_messages |
wp_wpam_transactions |
... |
New WordPress options |
---|
widget_theysaidso_widget |
wpam_affcurrency_symbol |
wpam_bank_transfer_instructions |
wpam_default_creative_id |
wpam_auto_delete_wp_user_account |
wpam_aff_home_page |
theysaidso_admin_options |
widget_recent-posts |
wpam_admin_reg_notification_email |
wpam_send_admin_reg_notification |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Affiliates Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲60 | 14.26 ▼0.15 | 2.02 ▼0.17 | 44.14 ▲1.61 |
Dashboard /wp-admin | 2,250 ▲70 | 5.60 ▼0.03 | 84.17 ▼16.23 | 39.34 ▼3.44 |
Posts /wp-admin/edit.php | 2,163 ▲66 | 2.02 ▲0.08 | 37.96 ▲1.57 | 35.49 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,571 ▲37 | 22.78 ▼0.08 | 598.87 ▼85.68 | 53.96 ▼4.53 |
Media Library /wp-admin/upload.php | 1,460 ▲57 | 4.17 ▼0.04 | 97.45 ▼1.81 | 41.95 ▼3.22 |
Settings /wp-admin/admin.php?page=wpam-settings | 1,379 | 2.78 | 52.31 | 28.31 |
PayPal Mass Pay /wp-admin/admin.php?page=wpam-payments | 890 | 2.13 | 30.69 | 25.70 |
Admin Functions /wp-admin/admin.php?page=wpam-admin-functions | 920 | 2.17 | 29.60 | 26.38 |
Commissions /wp-admin/admin.php?page=wpam-commission | 1,084 | 2.12 | 29.13 | 32.10 |
Manage Payouts /wp-admin/admin.php?page=wpam-manage-payouts | 1,040 | 2.19 | 31.10 | 27.28 |
New Affiliate /wp-admin/admin.php?page=wpam-newaffiliate | 2,335 | 2.29 | 29.58 | 28.58 |
My Affiliates /wp-admin/admin.php?page=wpam-affiliates | 1,163 | 2.11 | 28.52 | 28.07 |
My Creatives /wp-admin/admin.php?page=wpam-creatives | 1,275 | 3.71 | 72.47 | 23.05 |
Click Tracking /wp-admin/admin.php?page=wpam-clicktracking | 1,083 | 2.13 | 30.02 | 25.09 |
Add-ons /wp-admin/admin.php?page=wpam-addons | 1,178 | 2.11 | 26.18 | 77.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.12MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 11 tables in the database
- wp_wpam_impressions
- wp_wpam_affiliates_fields
- wp_wpam_paypal_logs
- wp_wpam_tracking_tokens_purchase_logs
- wp_wpam_affiliates
- wp_wpam_messages
- wp_wpam_actions
- wp_wpam_creatives
- wp_wpam_transactions
- wp_wpam_events
- ...
- The uninstall procedure has failed, leaving 33 options in the database
- wpam_min_payout
- wpam_send_admin_reg_notification
- wpam_email_type
- wpam_default_creative_id
- wpam_aff_home_msg
- wpam_aff_home_msg_not_registered
- wpam_paypal_api_endpoint
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 10× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/affiliates-manager/html/widget_form_errors_panel.php
- > /wp-content/plugins/affiliates-manager/html/frontend_my_creatives.php
- > /wp-content/plugins/affiliates-manager/tests/testRefKey.php
- > /wp-content/plugins/affiliates-manager/html/affiliate_cp_impressions.php
- > /wp-content/plugins/affiliates-manager/html/admin/settings/settings_registration.php
- > /wp-content/plugins/affiliates-manager/tnc.php
- > /wp-content/plugins/affiliates-manager/html/affiliate_cp_transactions.php
- > /wp-content/plugins/affiliates-manager/html/affiliate_cp_contactinfo.php
- > /wp-content/plugins/affiliates-manager/tests/genId.php
- > /wp-content/plugins/affiliates-manager/imp.php
- 170× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'WPAM_BASE_DIRECTORY/source/Data/DataAccess.php' (include_path='.:/usr/share/php') in wp-content/plugins/affiliates-manager/source/MessageHelper.php on line 9
- > PHP Warning
Use of undefined constant WPAM_BASE_DIRECTORY - assumed 'WPAM_BASE_DIRECTORY' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliates-manager/source/Data/CreativeRepository.php on line 9
- > PHP Warning
require_once(WPAM_BASE_DIRECTORY/source/Validation/StateCodes.php): failed to open stream: No such file or directory in wp-content/plugins/affiliates-manager/source/Validation/StateCodeValidator.php on line 9
- > PHP Warning
Use of undefined constant WPAM_URL - assumed 'WPAM_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliates-manager/html/admin/settings/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WPAM_Pages_PublicPage' not found in wp-content/plugins/affiliates-manager/source/Pages/AffiliatesAppStatus.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPAM_MessageHelper' not found in wp-content/plugins/affiliates-manager/html/affiliate_application_submitted.php:1
- > PHP Fatal error
Uncaught Error: Interface 'WPAM_Validation_IValidator' not found in wp-content/plugins/affiliates-manager/source/Validation/StringValidator.php:9
- > PHP Warning
Use of undefined constant WPAM_URL - assumed 'WPAM_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliates-manager/html/admin/settings/settings.php on line 3
- > PHP Warning
include(): Failed opening 'WPAM_BASE_DIRECTORY/html/affiliate_cp_nav.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/affiliates-manager/html/affiliate_cp_transactions.php on line 3
- > PHP Warning
include(WPAM_BASE_DIRECTORY/html/affiliate_cp_nav.php): failed to open stream: No such file or directory in wp-content/plugins/affiliates-manager/html/affiliate_cp_home.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
affiliates-manager/boot-strap.php 92% from 13 tests
The principal PHP file in "Affiliates Manager" v. 2.9.33 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("affiliates-manager.php" instead of "boot-strap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin59,845 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 21 | 18,163 | 22,308 | 43,280 |
PHP | 161 | 1,983 | 1,098 | 13,696 |
CSS | 6 | 210 | 184 | 2,532 |
JavaScript | 5 | 37 | 138 | 327 |
HTML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 123.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 89 | |
▷ Abstract classes | 2 | 2.25% |
▷ Concrete classes | 87 | 97.75% |
▷ Final classes | 0 | 0.00% |
Methods | 513 | |
▷ Static methods | 37 | 7.21% |
▷ Public methods | 452 | 88.11% |
▷ Protected methods | 33 | 6.43% |
▷ Private methods | 28 | 5.46% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 51 | |
▷ Global constants | 25 | 49.02% |
▷ Class constants | 26 | 50.98% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
46 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/addons/woo-revenue-share.png | 3.04KB | 2.05KB | ▼ 32.46% |
images/addons/mailchimp-integration.png | 3.16KB | 2.24KB | ▼ 29.32% |
images/addons/getresponse-integration-addon.png | 2.27KB | 1.29KB | ▼ 43.13% |
images/addons/sdd-plugin-integraton.png | 2.60KB | 1.56KB | ▼ 40.03% |
images/icon_cash.png | 0.56KB | 0.51KB | ▼ 8.58% |