71% clickblaze

Code Review | Click Blaze

WordPress plugin Click Blaze scored71%from 54 tests.

About plugin

  • Plugin page: clickblaze
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 17, 2018
  • Latest release: Feb 17, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: zoan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.32MB] [CPU: ▲1,167.55ms] 50% from 4 tests

A check of server-side resources used by Click Blaze
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 676.35ms on /wp-admin/tools.php?page=redux-about)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 1,167.55ms on /wp-admin/tools.php?page=redux-about)
PageMemory (MB)CPU Time (ms)
Home /4.76 ▲1.2956.59 ▲17.56
Dashboard /wp-admin4.99 ▲1.643,513.56 ▲3,446.97
Posts /wp-admin/edit.php4.72 ▲1.364,370.79 ▲4,317.97
Add New Post /wp-admin/post-new.php7.19 ▲1.30723.79 ▲621.40
Media Library /wp-admin/upload.php4.55 ▲1.32621.91 ▲584.26
Click Blaze Header Notification /wp-admin/admin.php?page=_clickblaze&tab=45.103,997.46
Click Blaze Settings /wp-admin/options-general.php?page=clickblaze_settings4.50680.03
Redux Framework /wp-admin/tools.php?page=redux-about4.51676.35

Server storage [IO: ▲3.78MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 416 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
redux_version_upgraded_from
eliio
clickblaze
widget_recent-comments
eliio-transients

Browser metrics Passed 4 tests

Checking browser requirements for Click Blaze
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,033 ▲28713.82 ▼0.558.68 ▲7.0142.54 ▲0.03
Dashboard /wp-admin2,314 ▲1345.57 ▼0.0987.43 ▼3.9947.33 ▲4.09
Posts /wp-admin/edit.php2,157 ▲571.96 ▼0.0434.33 ▼6.2842.35 ▲4.47
Add New Post /wp-admin/post-new.php1,594 ▲6825.12 ▲2.01630.14 ▲4.7176.16 ▲13.54
Media Library /wp-admin/upload.php1,457 ▲604.19 ▼0.0596.11 ▼28.1744.10 ▼8.98
Click Blaze Header Notification /wp-admin/admin.php?page=_clickblaze&tab=42,4154.36118.7656.97
Click Blaze Settings /wp-admin/options-general.php?page=clickblaze_settings8992.0022.4226.50
Redux Framework /wp-admin/tools.php?page=redux-about1,1173.6074.4364.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 10 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • eliio-transients
    • widget_recent-posts
    • widget_recent-comments
    • redux_version_upgraded_from
    • clickblaze
    • eliio

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=_clickblaze&tab=4
    • > Error in wp-includes/Requests/src/Exception/InvalidArgument.php+29
    Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construct(): Argument #1 ($name) must be of type string, integer given in wp-includes/Requests/src/Exception/InvalidArgument.php:29
    Stack trace:
    #0 wp-includes/Requests/src/Cookie.php(84): WpOrg\Requests\Exception\InvalidArgument::create()
    #1 wp-includes/class-wp-http.php(472): WpOrg\Requests\Cookie->__construct()
    #2 wp-includes/class-wp-http.php(352): WP_Http::normalize_cookies()
    #3 wp-includes/http.php(150): WP_Http->request()
    #4 wp-content/plugins/clickblaze/inc/inc/class.p.php(230): wp_remote_request()
    #5 wp-includes/class-wp-hook.php(310): Redux_P->proxy()
    #6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #7 wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 wp-admin/admin-ajax.php(188): do_action()
    #9 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clickblaze/inc/inc/class.p.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/clickblaze/inc/inc/themecheck/checks/full_package.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/clickblaze/inc/inc/welcome/views/support.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/clickblaze/inc/inc/fields/select/elusive-icons.php:312
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/clickblaze/inc/inc/welcome/views/changelog.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/clickblaze/inc/templates/panel/content.tpl.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/clickblaze/inc/inc/extensions/customizer/inc/customizer_devs.php:12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/clickblaze/inc/templates/panel/container.tpl.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/clickblaze/inc/inc/welcome/views/about.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Redux_Customizer_Control' not found in wp-content/plugins/clickblaze/inc/inc/extensions/customizer/inc/customizer_fields.php:3

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=_clickblaze&tab=4
    • > Deprecation (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=_clickblaze&tab=4
    • > Network (severe)
    wp-admin/admin-ajax.php?action=redux_p&nonce=5f7f59a617&url=http%3A%2F%2Flook.redux.io%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3D5f7f59a617%26url%3D - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/admin.php?page=_clickblaze&tab=4
    • > Security (severe) in unknown
    /wp-admin/admin.php?page=_clickblaze&tab=4 - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=5f7f59a617&url=http%3A%2F%2Flook.redux.io%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3D5f7f59a617%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Please a description for screenshot #4 in clickblaze/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === clickblaze === )
You can look at the official readme.txt

clickblaze/click-blaze.php 85% from 13 tests

The main PHP file in "Click Blaze" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("clickblaze.php" instead of "click-blaze.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin37,879 lines of code in 299 files:
LanguageFilesBlank linesComment linesLines of code
PHP1083,7735,49216,094
JavaScript872,6171,96012,112
Sass541,184607,579
SVG100934
JSON11840909
CSS47938198
LESS10053

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 113)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity32.44
▷ Minimum class complexity1.00
▷ Maximum class complexity882.00
Average method complexity6.56
▷ Minimum method complexity1.00
▷ Maximum method complexity113.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes102
▷ Abstract classes00.00%
▷ Concrete classes102100.00%
▷ Final classes00.00%
Methods578
▷ Static methods10117.47%
▷ Public methods43775.61%
▷ Protected methods9115.74%
▷ Private methods508.65%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants59
▷ Global constants23.39%
▷ Class constants5796.61%
▷ Public constants57100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/assets/img/3-col-portfolio.png1.00KB0.15KB▼ 85.27%
inc/assets/img/3cr.png2.98KB0.34KB▼ 88.66%
inc/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
inc/inc/fields/spinner/arrow_right.png0.15KB0.12KB▼ 18.18%
inc/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_f6cf3b_256x240.png8.68KB4.11KB▼ 52.68%