Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/clickbank-ads-clickbank-widget/clickbank-ads.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; cbwec has a deprecated constructor
Server metrics [RAM: ▼1.62MB] [CPU: ▼53.79ms] Passed 4 tests
Server-side resources used by Affiliate Ads for ClickBank
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.10 | 5.60 ▼40.54 |
Dashboard /wp-admin | 2.39 ▼0.92 | 7.90 ▼45.81 |
Posts /wp-admin/edit.php | 2.39 ▼0.97 | 6.33 ▼42.16 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.50 | 6.70 ▼86.66 |
Media Library /wp-admin/upload.php | 2.39 ▼0.84 | 7.42 ▼27.58 |
Affiliate Ads for ClickBank /wp-admin/options-general.php?page=clickbank-ads-clickbank-widget/clickbank-ads.php | 2.39 | 6.38 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_clickbank_ads_widget_version |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate Ads for ClickBank
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼1.07 | 1.92 ▲0.00 | 43.54 ▲4.28 |
Dashboard /wp-admin | 2,210 ▲22 | 5.84 ▲0.04 | 112.55 ▲3.50 | 42.32 ▲0.04 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.00 ▼0.01 | 35.61 ▼0.62 | 33.30 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.36 ▲0.41 | 629.78 ▲3.43 | 53.41 ▼3.51 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.21 ▲0.05 | 103.37 ▲8.50 | 46.14 ▲1.79 |
Affiliate Ads for ClickBank /wp-admin/options-general.php?page=clickbank-ads-clickbank-widget/clickbank-ads.php | 1,195 | 2.20 | 28.21 | 32.44 |
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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/clickbank-ads-clickbank-widget/clickbank-ads.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; cbwec has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_clickbank_ads_widget_version
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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=clickbank-ads-clickbank-widget/clickbank-ads.php
- > Deprecated in wp-content/plugins/clickbank-ads-clickbank-widget/clickbank-ads.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; cbwec has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=clickbank-ads-clickbank-widget/clickbank-ads.php
- > Deprecated in wp-content/plugins/clickbank-ads-clickbank-widget/clickbank-ads.php+354
Methods with the same name as their class will not be constructors in a future version of PHP; ClickBank_Ads_W has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=clickbank-ads-clickbank-widget/clickbank-ads.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ClickBank_Ads_W is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=clickbank-ads-clickbank-widget/clickbank-ads.php
- > Notice in wp-content/plugins/clickbank-ads-clickbank-widget/clickbank-ads.php+72
Undefined index: keywords
SRP 50% 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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clickbank-ads-clickbank-widget/clickbank-ads.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 68 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 ("Affiliate Ads for ClickBank" Plugin options for widget area), #2 (Widget Output - Vertical Affiliate Banner), #3 (Affiliate Widget Output (1:5) - Carousel Slideshow), #4 ("Affiliate Ads for ClickBank" Plugin options for post area), #5 (Plugin Output - Horizontal Affiliate Banner), #6 (Click Bank Affiliate Plugin Output - Rectangle (360x400))
clickbank-ads-clickbank-widget/clickbank-ads.php 85% from 13 tests
The main PHP file in "Affiliate Ads for ClickBank" ver. 1.35 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 342 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("clickbank-ads-clickbank-widget.php" instead of "clickbank-ads.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
Good job! No executable or dangerous file extensions detected445 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 21 | 445 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 70.50 |
▷ Minimum class complexity | 45.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 12.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
6 PNG files occupy 0.37MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 69.91KB | 20.66KB | ▼ 70.45% |
screenshot-4.png | 28.36KB | 10.00KB | ▼ 64.74% |
screenshot-5.png | 120.14KB | 40.56KB | ▼ 66.24% |
prev.png | 3.04KB | 2.15KB | ▼ 29.37% |
screenshot-1.png | 33.07KB | 11.26KB | ▼ 65.94% |