90% classic-widgets-with-block-based-widgets

Code Review | Classic Widgets with Block-based Widgets

WordPress plugin Classic Widgets with Block-based Widgets scored90%from 54 tests.

About plugin

  • Plugin page: classic-widgets-w...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Feb 23, 2022
  • Latest release: Apr 8, 2023
  • Number of updates: 6
  • Update frequency: every 68.5 days
  • Top authors: 5um17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /4,486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.47ms] Passed 4 tests

An overview of server-side resources used by Classic Widgets with Block-based Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.74 ▼10.73
Dashboard /wp-admin3.32 ▲0.0161.92 ▲13.19
Posts /wp-admin/edit.php3.37 ▲0.0146.95 ▲0.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.06 ▼8.66
Media Library /wp-admin/upload.php3.24 ▲0.0136.44 ▲1.02
Classic Widgets /wp-admin/widgets.php?cw=13.3247.44

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Classic Widgets with Block-based Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.62 ▼0.761.65 ▼0.2340.29 ▼2.54
Dashboard /wp-admin2,210 ▲255.85 ▼0.02112.41 ▲10.2042.41 ▲2.52
Posts /wp-admin/edit.php2,090 ▲42.02 ▲0.0235.37 ▼1.6037.24 ▲2.95
Add New Post /wp-admin/post-new.php1,517 ▼1117.75 ▼5.43655.64 ▼39.4055.76 ▼1.57
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.05102.89 ▲3.6342.05 ▼3.07
Classic Widgets /wp-admin/widgets.php?cw=14,1316.43129.1238.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: disable gutenberg, classic widgets, gutenberg widgets, block-based-widgets

classic-widgets-with-block-based-widgets/classic-and-block-widgets.php 92% from 13 tests

The main PHP script in "Classic Widgets with Block-based Widgets" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("classic-widgets-with-block-based-widgets.php" instead of "classic-and-block-widgets.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1122468

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin