80% mycbgenie-clickbank-storefront

Code Review | ClickBank Storefront WordPress Plugin

WordPress plugin ClickBank Storefront WordPress Plugin scored80%from 54 tests.

About plugin

  • Plugin page: mycbgenie-clickba...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Jun 22, 2023
  • Number of updates: 221
  • Update frequency: every 12.5 days
  • Top authors: mycbgenie (54.3%)dactum (46.15%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /11,550 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.16ms] Passed 4 tests

Analyzing server-side resources used by ClickBank Storefront WordPress Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.28 ▲0.03
Dashboard /wp-admin3.31 ▲0.0043.71 ▼12.86
Posts /wp-admin/edit.php3.36 ▲0.0048.27 ▲5.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.85 ▼10.05
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▼1.76

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ClickBank Storefront WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.041.86 ▲0.1537.91 ▼6.80
Dashboard /wp-admin2,206 ▲155.06 ▲0.1197.28 ▼25.9737.73 ▼19.74
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.1338.37 ▲0.3636.30 ▲1.77
Add New Post /wp-admin/post-new.php1,535 ▲2123.38 ▲5.66650.88 ▼64.4168.58 ▲2.05
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0694.11 ▼11.9540.43 ▼4.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/mycbgenie-clickbank-storefront/functions.inc.php+797
    Invalid argument supplied for foreach()
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: clickbank, clickbank plugin, clickbank storefront, wordpress clickbank, wordpress woocommerce store...

mycbgenie-clickbank-storefront/mycbgenie-clickbank-storefront.php Passed 13 tests

Analyzing the main PHP file in "ClickBank Storefront WordPress Plugin" version 1.7
125 characters long description:
Not just an another Clickbank Storefront plugin! Designed to excel with the world's favorite eCommerce plugin - WooCommerce !

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
No dangerous file extensions were detected6,362 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP123,2188885,328
JavaScript7495102943
CSS26591

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity98.00
▷ Minimum class complexity98.00
▷ Maximum class complexity98.00
Average method complexity6.11
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1789.47%
▷ Protected methods15.26%
▷ Private methods15.26%
Functions116
▷ Named functions11397.41%
▷ Anonymous functions32.59%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
20 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/collapse.png0.45KB0.35KB▼ 21.65%
images/clickbank-logo.png5.54KB2.38KB▼ 56.93%
images/expand.png0.45KB0.37KB▼ 17.29%
images/fav_white.png1.89KB2.01KB0.00%
images/mycbgenie-logo.png13.96KB8.66KB▼ 37.96%