10% clickskins

Code Review | Click skin - Website enhancements and an alternative to banner ads

WordPress plugin Click skin - Website enhancements and an alternative to banner ads scored 10% from 54 tests.

About plugin

  • Plugin page: clickskins
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.1.1
  • WordPress version: 5.8.1
  • First release: Mar 11, 2015
  • Latest release: Apr 13, 2015
  • Number of updates: 9
  • Update frequency: every 5.3 days
  • Top authors: reaveyo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 824 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/clickskins/classes/base.class.php+276
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.78MB] [CPU: ▼188.06ms] Passed 4 tests

This is a short check of server-side resources used by Click skin - Website enhancements and an alternative to banner ads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.85 ▼0.877.02 ▼13.81
Dashboard /wp-admin1.87 ▼1.195.95 ▼36.85
Posts /wp-admin/edit.php1.87 ▼1.245.46 ▼38.50
Add New Post /wp-admin/post-new.php1.87 ▼3.576.17 ▼650.73
Media Library /wp-admin/upload.php1.87 ▼1.135.60 ▼26.15
Click skins /wp-admin/admin.php?page=clickskins/admin/admin_init.php1.875.49
Audio Settings /wp-admin/admin.php?page=clickskins/admin/admin_init.php_settings1.879.95

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: 1 new table, 1 new option
New tables
wp_spc_flakes
New WordPress options
snapycode_flake_installed

Browser metrics Passed 4 tests

Checking browser requirements for Click skin - Website enhancements and an alternative to banner ads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,958 ▲37617.72 ▲1.759.15 ▼0.2348.23 ▲1.55
Dashboard /wp-admin3,208 ▲2778.02 ▲2.05159.22 ▲16.89136.63 ▲33.67
Posts /wp-admin/edit.php3,036 ▲2974.37 ▲1.6581.34 ▲17.9299.84 ▲2.58
Add New Post /wp-admin/post-new.php1,653 ▲15521.84 ▲3.05267.79 ▼104.21101.54 ▼5.37
Media Library /wp-admin/upload.php1,805 ▼54.94 ▼0.08117.40 ▼34.76133.95 ▲17.32
Click skins /wp-admin/admin.php?page=clickskins/admin/admin_init.php1,5834.4974.8188.44
Audio Settings /wp-admin/admin.php?page=clickskins/admin/admin_init.php_settings1,4453.9570.8198.85

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
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/clickskins/classes/base.class.php+276
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • snapycode_flake_installed

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
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=clickskins/admin/admin_init.php_settings
    • > Deprecated in wp-content/plugins/clickskins/classes/base.class.php+276
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=clickskins/admin/admin_init.php_settings
    • > User notice in wp-includes/functions.php+5663
    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.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=clickskins/admin/admin_init.php_settings
    • > User notice in wp-includes/functions.php+5663
    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-ui-core 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=clickskins/admin/admin_init.php_settings
    • > User notice in wp-includes/functions.php+5663
    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-ui-tabs 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=clickskins/admin/admin_init.php_settings
    • > User notice in wp-includes/functions.php+5663
    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-effects-core 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=clickskins/admin/admin_init.php_settings
    • > User notice in wp-includes/functions.php+5663
    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-ui-datepicker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=clickskins/admin/admin_init.php_settings
    • > Notice in wp-content/plugins/clickskins/admin/admin_init.php+51
    Undefined variable: submenu2
    • > GET request to /wp-admin/admin.php?page=clickskins/admin/admin_init.php
    • > Notice in wp-content/plugins/clickskins/admin/admin_menu_spcflakes.php+509
    Undefined variable: where

SRP 50% from 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
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'SnapycodeFlake' not found in wp-content/plugins/clickskins/admin/admin_menu_spcflakes.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'SnapycodeFlake' not found in wp-content/plugins/clickskins/admin/admin_menu_spcflakes.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clickskins/clickskin.php:26

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=clickskins/admin/admin_init.php_settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1 1:31592 "jQuery.Deferred exception: jQuery(...).wpColorPicker is not a function" "TypeError: jQuery(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/clickskins/assets/js/snapycode_flake_admin.js?ver=5.8.1:4:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1:2:30340)" undefined
    • > GET request to /wp-admin/admin.php?page=clickskins/admin/admin_init.php_settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.8.1 1:31702 Uncaught TypeError: jQuery(...).wpColorPicker is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: clickskin, ads, website, alternative, enhancements

clickskins/clickskin.php 92% from 13 tests

"Click skin - Website enhancements and an alternative to banner ads" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("clickskins.php" instead of "clickskin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,965 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42,1191,1934,339
PHP5521153834
CSS513750749
HTML122243

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity46.00
▷ Minimum class complexity16.00
▷ Maximum class complexity73.00
Average method complexity5.66
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
17 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/info.png1.52KB1.49KB▼ 2.37%
assets/images/complete.png0.52KB0.57KB0.00%
assets/images/error.png1.38KB1.31KB▼ 5.30%
assets/images/settings_icon.png18.56KB6.42KB▼ 65.40%
assets/images/warning.png1.38KB1.46KB0.00%