10% clickbank-niche-storefronts

Code Review | Clickbank WordPress Plugin (Niche Storefront)

WordPress plugin Clickbank WordPress Plugin (Niche Storefront) scored10%from 54 tests.

About plugin

  • Plugin page: clickbank-niche-s...
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0.2
  • WordPress version: 6.3.1
  • First release: May 7, 2016
  • Latest release: Nov 11, 2022
  • Number of updates: 103
  • Update frequency: every 34.2 days
  • Top authors: dactum (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /23,250 total downloads

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
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/clickbank-niche-storefronts/clickbank-niche-storefronts.php+120
    Undefined index: cns_show_storefront_after_posts

Server metrics [RAM: ▼1.70MB] [CPU: ▼58.53ms] Passed 4 tests

This is a short check of server-side resources used by Clickbank WordPress Plugin (Niche Storefront)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.165.47 ▼36.00
Dashboard /wp-admin2.32 ▼1.036.63 ▼59.70
Posts /wp-admin/edit.php2.32 ▼1.047.52 ▼37.23
Add New Post /wp-admin/post-new.php2.32 ▼3.576.99 ▼101.18
Media Library /wp-admin/upload.php2.32 ▼0.916.33 ▼29.86
Clickbank Niche Storefronts /wp-admin/options-general.php?page=cns_menu2.326.32

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 15 new options
New WordPress options
cns_columns
db_upgraded
cns_title_tag
cns_subtitle_tag
can_compress_scripts
widget_theysaidso_widget
cns_items_per_page
cns_user_id
theysaidso_admin_options
cns_subtitle_style
...

Browser metrics Passed 4 tests

Checking browser requirements for Clickbank WordPress Plugin (Niche Storefront)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.60 ▼0.629.35 ▲7.6341.22 ▼0.96
Dashboard /wp-admin2,210 ▲224.89 ▲0.01113.81 ▼5.4044.31 ▼2.71
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0240.50 ▲4.7935.91 ▲0.56
Add New Post /wp-admin/post-new.php1,540 ▲922.85 ▲4.58653.38 ▲7.3360.17 ▲10.20
Media Library /wp-admin/upload.php1,392 ▲44.25 ▼0.06101.55 ▲1.9841.78 ▼2.45
Clickbank Niche Storefronts /wp-admin/options-general.php?page=cns_menu8852.1929.6828.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/clickbank-niche-storefronts/clickbank-niche-storefronts.php+120
    Undefined index: cns_show_storefront_after_posts
  • This plugin does not fully uninstall, leaving 15 options in the database
    • db_upgraded
    • cns_subtitle_tag
    • cns_title_style
    • cns_show_price
    • theysaidso_admin_options
    • cns_niche
    • cns_user_id
    • widget_theysaidso_widget
    • widget_recent-comments
    • cns_subtitle_style
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=cns_menu
    • > Notice in wp-content/plugins/clickbank-niche-storefronts/clickbank-niche-storefronts.php+120
    Undefined index: cns_show_storefront_after_posts
    • > GET request to /wp-admin/options-general.php?page=cns_menu
    • > Notice in wp-content/plugins/clickbank-niche-storefronts/functions.inc.php+67
    Undefined index: cns_submit

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
The following issues need your attention
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/clickbank-niche-storefronts/product/index.php
    • > /wp-content/plugins/clickbank-niche-storefronts/ajax_request.php
    • > /wp-content/plugins/clickbank-niche-storefronts/product.php
    • > /wp-content/plugins/clickbank-niche-storefronts/check_requirements.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined index: test_value in wp-content/plugins/clickbank-niche-storefronts/check_requirements.php on line 19
    • > PHP Notice
      Undefined offset: 2 in wp-content/plugins/clickbank-niche-storefronts/product/index.php on line 9
    • > PHP Notice
      Undefined offset: 1 in wp-content/plugins/clickbank-niche-storefronts/product/index.php on line 8
    • > PHP Notice
      Undefined offset: 5 in wp-content/plugins/clickbank-niche-storefronts/product/index.php on line 12
    • > PHP Notice
      A feed could not be found at `https://cbproads.com/xmlfeed/wp/cb.asp?start=-12&end=12&niche=&id=&Datem=2023-10-08&url=http%3A%2F%2Fwp.com`; the status code is `200` and content-type is `text/html` in wp-includes/class-simplepie.php on line 1787
    • > PHP Notice
      Undefined offset: 3 in wp-content/plugins/clickbank-niche-storefronts/product/index.php on line 10
    • > PHP Notice
      Undefined index: mem in wp-content/plugins/clickbank-niche-storefronts/product.php on line 7
    • > PHP Notice
      Undefined index: niche in wp-content/plugins/clickbank-niche-storefronts/product.php on line 14
    • > PHP Notice
      Undefined offset: 4 in wp-content/plugins/clickbank-niche-storefronts/product/index.php on line 11
    • > PHP Notice
      Undefined index: tar in wp-content/plugins/clickbank-niche-storefronts/product.php on line 8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=cns_menu
    • > 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: select is not defined" "ReferenceError: select is not defined\n at cns_show_storefront_after_posts_change (/wp-admin/options-general.php?page=cns_menu:48:55)\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=cns_menu:50: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/options-general.php?page=cns_menu
    • > 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 ReferenceError: select is not defined

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

clickbank-niche-storefronts/clickbank-niche-storefronts.php Passed 13 tests

The entry point to "Clickbank WordPress Plugin (Niche Storefront)" version 1.3.5 is a PHP file that has certain tags in its header comment area
81 characters long description:
This plugin allows users to add a Clickbank Niche Storefront as a POST or a PAGE.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,643 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP72462621,332
CSS2485179
JavaScript23758132

PHP code Passed 2 tests

A brief analysis 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 code0.55
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin