84% wysiwyg-widgets

Code Review | Widget Content Blocks

WordPress plugin Widget Content Blocks scored 84% from 54 tests.

About plugin

  • Plugin page: wysiwyg-widgets
  • Plugin version: 2.3.9
  • PHP compatiblity: 5.2.14+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8
  • WordPress version: 6.3.1
  • First release: Jun 5, 2011
  • Latest release: Nov 30, 2021
  • Number of updates: 68
  • Update frequency: every 56.4 days
  • Top authors: DvanKooten (100%)

Code review

54 tests

User reviews

59 reviews

Install metrics

10,000+ active / 311,248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.48ms] Passed 4 tests

A check of server-side resources used by Widget Content Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.27 ▼1.85
Dashboard /wp-admin3.37 ▲0.0748.79 ▼2.06
Posts /wp-admin/edit.php3.49 ▲0.1345.49 ▲0.40
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.58 ▼10.41
Media Library /wp-admin/upload.php3.30 ▲0.0736.85 ▲2.18
New Widget Block /wp-admin/post-new.php?post_type=wysiwyg-widget3.4147.73
All Widget Blocks /wp-admin/edit.php?post_type=wysiwyg-widget3.3434.20

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_wysiwyg_widgets_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Widget Content Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.31 ▼1.056.56 ▲4.6943.34 ▼3.53
Dashboard /wp-admin2,233 ▲504.86 ▼0.07111.66 ▲1.5342.87 ▼4.05
Posts /wp-admin/edit.php2,113 ▲241.99 ▼0.0436.13 ▼0.3432.81 ▲0.21
Add New Post /wp-admin/post-new.php1,557 ▲2123.34 ▲0.01672.03 ▲27.3758.31 ▼6.85
Media Library /wp-admin/upload.php1,409 ▲184.17 ▲0.0193.17 ▼3.9842.23 ▲0.57
New Widget Block /wp-admin/post-new.php?post_type=wysiwyg-widget2,2517.59175.9669.09
All Widget Blocks /wp-admin/edit.php?post_type=wysiwyg-widget1,0801.9930.1929.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_wysiwyg_widgets_widget
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wysiwyg-widgets/includes/plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wysiwyg-widgets/includes/class-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: widget, rich text, fckeditor, tinymce, visual...

wysiwyg-widgets/wysiwyg-widgets.php Passed 13 tests

The entry point to "Widget Content Blocks" version 2.3.9 is a PHP file that has certain tags in its header comment area
73 characters long description:
Adds a WYSIWYG Widget with a rich text editor and media upload functions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin654 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PO File5133141376
PHP54981176
Markdown1410102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.50
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin