68% customizely

Code Review | Customizer custom controls with Drag and Drop builder – Customizely

WordPress plugin Customizer custom controls with Drag and Drop builder – Customizely scored 68% from 54 tests.

About plugin

  • Plugin page: customizely
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 5.9.2
  • First release: Aug 3, 2019
  • Latest release: Mar 18, 2022
  • Number of updates: 15
  • Update frequency: every 63.9 days
  • Top authors: kitthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,361 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.64MB] [CPU: ▼271.59ms] Passed 4 tests

A check of server-side resources used by Customizer custom controls with Drag and Drop builder – Customizely
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.40 ▲4.8577.22 ▲29.34
Dashboard /wp-admin8.41 ▲4.9759.25 ▲22.70
Posts /wp-admin/edit.php8.41 ▲4.7459.79 ▲21.01
Add New Post /wp-admin/post-new.php10.98 ▲3.98121.48 ▼1,151.18
Media Library /wp-admin/upload.php8.41 ▲5.0947.22 ▲21.12
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.4145.18
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php8.5366.83

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 228 new files
Database: no new tables, 6 new options
New WordPress options
fs_debug_mode
fs_active_plugins
widget_recent-comments
fs_gdpr
fs_accounts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Customizer custom controls with Drag and Drop builder – Customizely
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,839 ▲8516.17 ▲0.476.76 ▲0.622.34 ▲0.03
Dashboard /wp-admin2,955 ▲946.17 ▼0.01118.39 ▼20.13187.34 ▼4.74
Posts /wp-admin/edit.php2,749 ▲553.14 ▼0.2163.08 ▼2.71158.98 ▲12.91
Add New Post /wp-admin/post-new.php1,880 ▲18422.25 ▲0.96420.12 ▼37.53205.10 ▲49.65
Media Library /wp-admin/upload.php1,760 ▲625.51 ▲0.04126.45 ▼22.82220.69 ▲34.05
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,4312.4754.18110.64
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php7,32819.78507.63168.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/customizely/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • fs_debug_mode
    • fs_accounts
    • fs_gdpr
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customizely/views/customizely.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/customizely/includes/class-control.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Customizely\\Control' not found in wp-content/plugins/customizely/includes/class-control-inline.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customizely/views/addons.php:15

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 uses markdown syntax to describe your plugin to the world
7 plugin tags: css, drag-and-drop, live, customizer, options...

customizely/customizely.php Passed 13 tests

The main file in "Customizer custom controls with Drag and Drop builder – Customizely" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
Style WP site with customizer

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin67,009 lines of code in 182 files:
LanguageFilesBlank linesComment linesLines of code
PHP1337,76218,77033,295
PO File137,5319,16116,474
JavaScript143,7893,02515,286
CSS19264431,712
Markdown1680214
JSON10027
SVG1001

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity62.10
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes68
▷ Abstract classes45.88%
▷ Concrete classes6494.12%
▷ Final classes00.00%
Methods1,218
▷ Static methods17414.29%
▷ Public methods87571.84%
▷ Protected methods151.23%
▷ Private methods32826.93%
Functions147
▷ Named functions14497.96%
▷ Anonymous functions32.04%
Constants126
▷ Global constants10180.16%
▷ Class constants2519.84%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/customizely.png36.33KB13.14KB▼ 63.83%
assets/images/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/images/chosen-sprite.png0.53KB0.88KB0.00%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%