Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.62MB] [CPU: ▼53.39ms] Passed 4 tests
A check of server-side resources used by Affiliate Ads for Clickbank Products
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.09 | 6.27 ▼39.75 |
Dashboard /wp-admin | 2.39 ▼0.92 | 7.92 ▼45.75 |
Posts /wp-admin/edit.php | 2.39 ▼0.97 | 7.23 ▼45.30 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.50 | 6.65 ▼82.75 |
Media Library /wp-admin/upload.php | 2.39 ▼0.84 | 7.74 ▼30.39 |
Ad Settings /wp-admin/admin.php?page=mycbgenie_ads_settings | 2.39 | 6.73 |
ClickBank Ads /wp-admin/admin.php?page=mycbgenie_ads_main_menu | 2.39 | 6.19 |
Ad Widget /wp-admin/admin.php?page=mycbgenie_ads_widget | 2.39 | 8.79 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_mycbgenie_ads_plugin |
widget_recent-comments |
can_compress_scripts |
mycbgenie_ads_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affiliate Ads for Clickbank Products
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲195 | 14.10 ▼0.25 | 6.76 ▲4.87 | 42.28 ▼4.50 |
Dashboard /wp-admin | 2,240 ▲34 | 5.13 ▼0.86 | 101.67 ▼13.27 | 86.64 ▲44.49 |
Posts /wp-admin/edit.php | 2,141 ▲49 | 2.29 ▲0.24 | 42.95 ▲6.77 | 35.25 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,554 ▲21 | 23.25 ▲0.16 | 734.27 ▼27.47 | 37.17 ▼24.75 |
Media Library /wp-admin/upload.php | 1,440 ▲52 | 4.44 ▲0.24 | 102.98 ▼10.52 | 83.96 ▲38.73 |
Ad Settings /wp-admin/admin.php?page=mycbgenie_ads_settings | 1,426 | 1.84 | 26.06 | 31.60 |
ClickBank Ads /wp-admin/admin.php?page=mycbgenie_ads_main_menu | 1,428 | 1.85 | 29.21 | 30.47 |
Ad Widget /wp-admin/admin.php?page=mycbgenie_ads_widget | 853 | 1.79 | 26.37 | 36.49 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function 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 mycbgenie_text_ads_div_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- mycbgenie_ads_version
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- widget_mycbgenie_ads_plugin
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_widget
- > User notice in wp-includes/functions.php+5905
Function 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 mycbgenie_text_ads_div_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_widget
- > User notice in wp-includes/functions.php+5905
Function 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 mycbgenie_banner_ads_div_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_widget
- > User notice in wp-includes/functions.php+5905
Function 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 mycbgenie_image_ads_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_widget
- > User notice in wp-includes/functions.php+5905
Function 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 mycbgenie_image_ads_div_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_main_menu
- > Notice in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/settings.inc.php+349
Undefined variable: mycbgenie_cb_tracking_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_main_menu
- > Notice in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/settings.inc.php+355
Undefined variable: show_ads_top_single_post
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_main_menu
- > Notice in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/settings.inc.php+426
Undefined variable: mycbgenie_ad_position_single_post
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_main_menu
- > Notice in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/settings.inc.php+375
Undefined variable: mycbgenie_ad_format_top_single_post
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_main_menu
- > Notice in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/settings.inc.php+399
Undefined variable: thumbnails_top_location
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_main_menu
- > Notice in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/settings.inc.php+419
Undefined variable: show_ads_bottom_single_post
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_main_menu
- > Notice in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/settings.inc.php+438
Undefined variable: mycbgenie_ad_format_bottom_single_post
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mycbgenie_ads_main_menu
- > Notice in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/settings.inc.php+460
Undefined variable: thumbnails_bottom_location
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/affiliate-ads-builder-for-clickbank-products/text_ads_ajax.php
- > /wp-content/plugins/affiliate-ads-builder-for-clickbank-products/banner_ads_ajax.php
- > /wp-content/plugins/affiliate-ads-builder-for-clickbank-products/image_ad_ajax.php
- 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined index: hide_footer in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/image_ad_ajax.php on line 32
- > PHP Notice
Undefined index: rows in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/text_ads_ajax.php on line 35
- > PHP Notice
Undefined index: default_font_family in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/text_ads_ajax.php on line 29
- > PHP Notice
Undefined index: link_color in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/image_ad_ajax.php on line 25
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/banner_ads_ajax.php on line 33
- > PHP Notice
Undefined index: show_read_more_btn in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/text_ads_ajax.php on line 28
- > PHP Notice
Undefined index: im_width in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/image_ad_ajax.php on line 19
- > PHP Notice
Undefined index: rows in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/image_ad_ajax.php on line 28
- > PHP Notice
Undefined index: show_product_descr in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/image_ad_ajax.php on line 20
- > PHP Notice
Undefined index: border_color in wp-content/plugins/affiliate-ads-builder-for-clickbank-products/image_ad_ajax.php on line 24
- > PHP Notice
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 Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: clickbank script, clickbank affiliate ads, clickbak affiliates, click bank, clickbank wordpress plugin...
affiliate-ads-builder-for-clickbank-products/mycbgenie_clickbank_affiliate_ads.php 85% from 13 tests
The principal PHP file in "Affiliate Ads for Clickbank Products" v. 2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("affiliate-ads-builder-for-clickbank-products.php" instead of "mycbgenie_clickbank_affiliate_ads.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 161 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
Success! There were no dangerous files found in this plugin4,461 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 1,142 | 160 | 1,869 |
JavaScript | 16 | 359 | 723 | 1,546 |
CSS | 6 | 147 | 60 | 538 |
Markdown | 1 | 95 | 0 | 483 |
JSON | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 91.00 |
▷ Minimum class complexity | 91.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 23.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bxslider_carousel/bxslider/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
bxslider_carousel/styles/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
bxslider_carousel/js/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
images/MyCBGenie_logo.png | 13.48KB | 5.25KB | ▼ 61.03% |
bxslider_carousel/js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |