71% organic-customizer-widgets

Code Review | Organic Builder Widgets - Simple WordPress Page Builder

WordPress plugin Organic Builder Widgets - Simple WordPress Page Builder scored71%from 54 tests.

About plugin

  • Plugin page: organic-customize...
  • Plugin version: 1.4.17
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.0
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Jul 6, 2022
  • Number of updates: 137
  • Update frequency: every 13.2 days
  • Top authors: organicthemes (100%)

Code review

54 tests

User reviews

82 reviews

Install metrics

6,000+ active /277,345 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.27MB] [CPU: ▲9.12ms] Passed 4 tests

A check of server-side resources used by Organic Builder Widgets - Simple WordPress Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.71 ▲1.2549.82 ▲9.80
Dashboard /wp-admin4.60 ▲1.2958.84 ▲8.24
Posts /wp-admin/edit.php4.67 ▲1.3166.36 ▲19.88
Add New Post /wp-admin/post-new.php7.14 ▲1.2691.25 ▲3.94
Media Library /wp-admin/upload.php4.50 ▲1.2748.42 ▲14.51
Organic Widgets /wp-admin/admin.php?page=organic-widgets4.6149.42
Settings /wp-admin/admin.php?page=organic-widgets-settings4.5047.17

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 92 new files
Database: no new tables, 19 new options
New WordPress options
widget_organic_widgets_blog_posts_section
widget_recent-comments
widget_theysaidso_widget
widget_organic_widgets_subpage_section
widget_organic_widgets_profile
organic_widgets_install_date
widget_organic_widgets_featured_product_section
widget_organic_widgets_featured_content
widget_recent-posts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Organic Builder Widgets - Simple WordPress Page Builder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,281 ▲51017.44 ▲2.6912.05 ▲9.9537.27 ▼6.54
Dashboard /wp-admin2,569 ▲3817.89 ▲1.98161.42 ▲58.8144.04 ▲3.54
Posts /wp-admin/edit.php2,628 ▲5395.39 ▲3.3865.01 ▲22.8632.17 ▼5.80
Add New Post /wp-admin/post-new.php6,357 ▲4,82919.06 ▲0.75885.20 ▲268.7440.50 ▼7.05
Media Library /wp-admin/upload.php1,764 ▲3795.65 ▲1.43107.14 ▲8.4046.11 ▲0.22
Organic Widgets /wp-admin/admin.php?page=organic-widgets2,3498.26181.36158.42
Settings /wp-admin/admin.php?page=organic-widgets-settings1,4705.1958.3125.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 20 options in the database
    • organic_widgets_saved_widgets
    • widget_organic_widgets_testimonial_section
    • widget_organic_widgets_portfolio_section
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_organic_widgets_blog_posts_section
    • widget_organic_widgets_featured_product_section
    • theysaidso_admin_options
    • widget_organic_widgets_feature_list_section
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/featured-content/featured-content-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/testimonial-section/testimonial-section-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/portfolio-section/portfolio-section-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/subpage-section/subpage-section-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/pricing-table/pricing-table-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/profile-section/profile-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/featured-product-section/featured-product-section-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/team-section/team-section-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/blog-posts-section/blog-posts-section-widget.php
    • > /wp-content/plugins/organic-customizer-widgets/admin/widgets/feature-list-section/feature-list-section-widget.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function locate_template() in wp-content/plugins/organic-customizer-widgets/admin/templates/organic-custom-template.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/organic-customizer-widgets/admin/partials/organic-widgets-welcome-page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/organic-customizer-widgets/includes/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/organic-customizer-widgets/admin/partials/organic-widgets-settings-page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/organic-customizer-widgets/includes/class-tgm-plugin-activation.php:2109

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=organic-widgets-settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/organic-customizer-widgets/admin/widgets/team-section/js/team-section-widgets.js?ver=6.3.1 14:45 Uncaught ReferenceError: Backbone is not defined
    • > GET request to /wp-admin/admin.php?page=organic-widgets
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=organic-widgets 58:28 Uncaught TypeError: Cannot read properties of undefined (reading 'init')
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=organic-widgets-settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/organic-customizer-widgets/admin/widgets/testimonial-section/js/testimonial-section-widgets.js?ver=6.3.1 14:52 Uncaught ReferenceError: Backbone is not defined
    • > GET request to /wp-admin/admin.php?page=organic-widgets
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=organic-widgets 62:35 Uncaught TypeError: Cannot read properties of undefined (reading 'init')
    • > GET request to /wp-admin/admin.php?page=organic-widgets-settings
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=organic-widgets-settings 58:28 Uncaught TypeError: Cannot read properties of undefined (reading 'init')
    • > GET request to /wp-admin/admin.php?page=organic-widgets-settings
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=organic-widgets-settings 62:35 Uncaught TypeError: Cannot read properties of undefined (reading 'init')

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can take inspiration from this readme.txt

organic-customizer-widgets/organic-widgets.php 77% from 13 tests

"Organic Builder Widgets - Simple WordPress Page Builder" version 1.4.17'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: Please rename the main PHP file in this plugin to the plugin slug ("organic-customizer-widgets.php" instead of "organic-widgets.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 260 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin19,263 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
PHP342,2073,5647,573
CSS51151664,673
JavaScript269551,7534,334
SVG2012,683

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity38.38
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes00.00%
Methods272
▷ Static methods145.15%
▷ Public methods22181.25%
▷ Protected methods4516.54%
▷ Private methods62.21%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants22
▷ Global constants731.82%
▷ Class constants1568.18%
▷ Public constants15100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 9.73MB with 6.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/startup-screenshot.png1,035.72KB394.37KB▼ 61.92%
admin/img/widgets-compatibility-collage.png129.32KB41.65KB▼ 67.79%
admin/img/nonprofit-screenshot.png22.93KB7.84KB▼ 65.79%
admin/img/structure-lite-screenshot.png835.01KB293.12KB▼ 64.90%
admin/img/min-screenshot.png15.19KB6.69KB▼ 55.93%