Benchmarks
Plugin footprint 58% 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
- > Deprecated in wp-content/plugins/avantlink-wp/avantlink-wp.php+397
Methods with the same name as their class will not be constructors in a future version of PHP; Avantlink has a deprecated constructor
Server metrics [RAM: ▼2.41MB] [CPU: ▼343.56ms] Passed 4 tests
A check of server-side resources used by AvantLink Ad Tools for Affiliates
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.96 ▼1.55 | 4.82 ▼45.59 |
Dashboard /wp-admin | 1.98 ▼1.43 | 4.32 ▼30.16 |
Posts /wp-admin/edit.php | 1.98 ▼1.66 | 4.51 ▼33.80 |
Add New Post /wp-admin/post-new.php | 1.98 ▼4.99 | 4.09 ▼1,264.67 |
Media Library /wp-admin/upload.php | 1.98 ▼1.31 | 5.38 ▼27.60 |
AvantLink Tools /wp-admin/options-general.php?page=avantlink-wp | 1.98 | 4.25 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for AvantLink Ad Tools for Affiliates
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,833 ▲89 | 15.61 ▼0.41 | 6.06 ▲0.28 | 2.62 ▲0.17 |
Dashboard /wp-admin | 2,930 ▲69 | 6.22 ▲0.00 | 117.14 ▼17.01 | 174.97 ▲13.47 |
Posts /wp-admin/edit.php | 2,739 ▲51 | 3.11 ▼0.13 | 62.82 ▼2.10 | 146.87 ▲8.13 |
Add New Post /wp-admin/post-new.php | 1,974 ▲222 | 22.74 ▲1.00 | 441.30 ▼47.93 | 184.78 ▼102.22 |
Media Library /wp-admin/upload.php | 1,733 ▲38 | 5.54 ▼0.02 | 129.27 ▼20.12 | 206.13 ▲13.46 |
AvantLink Tools /wp-admin/options-general.php?page=avantlink-wp | 1,122 | 2.85 | 56.02 | 143.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/avantlink-wp/avantlink-wp.php+397
Methods with the same name as their class will not be constructors in a future version of PHP; Avantlink has a deprecated constructor
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > Deprecated in wp-content/plugins/avantlink-wp/avantlink-wp.php+397
Methods with the same name as their class will not be constructors in a future version of PHP; Avantlink has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-core handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_deregister_script was called incorrectly. Do not deregister the jquery-ui-core script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-tabs handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_deregister_script was called incorrectly. Do not deregister the jquery-ui-tabs script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the avantlink-jquery-ui handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > User notice in wp-includes/functions.php+5768
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the avantlink-admin-tabs handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > Deprecated in wp-content/plugins/avantlink-wp/avantlink-wp.php+423
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > Deprecated in wp-content/plugins/avantlink-wp/lib/shortcodes.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Avantlink_shortcodes has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=avantlink-wp
- > Deprecated in wp-content/plugins/avantlink-wp/tinymce/tinymce.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; add_avantlink_button has a deprecated constructor
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/avantlink-wp/post-ad-tool-form.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avantlink-wp/avantlink-wp.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avantlink-wp/meta-box-rp.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avantlink-wp/widget-product-ad-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/avantlink-wp/tinymce/tinymce.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avantlink-wp/widget-search-form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avantlink-wp/widget-related-products.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/avantlink-wp/lib/shortcodes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avantlink-wp/meta-box-ad-widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avantlink-wp/widget-ad-tool.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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: You are using too many tags: 12 tag instead of maximum 10
avantlink-wp/avantlink-wp.php 92% from 13 tests
The primary PHP file in "AvantLink Ad Tools for Affiliates" version 1.0.15 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 451 characters long)
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
Good job! No executable or dangerous file extensions detected2,249 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 510 | 419 | 1,500 |
JavaScript | 7 | 16 | 181 | 427 |
CSS | 3 | 33 | 72 | 270 |
SVG | 2 | 0 | 1 | 52 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/smoothness/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/icon-128x128.png | 16.38KB | 3.09KB | ▼ 81.12% |
css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
css/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |