78% lrw-so-widgets-bundle

Code Review | LRW Widgets Bundle

WordPress plugin LRW Widgets Bundle scored78%from 54 tests.

About plugin

  • Plugin page: lrw-so-widgets-bu...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.4.2
  • WordPress version: 6.3.1
  • First release: Dec 9, 2015
  • Latest release: Mar 7, 2016
  • Number of updates: 31
  • Update frequency: every 2.9 days
  • Top authors: luizrw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /10,742 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by LRW Widgets Bundle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.19 ▼7.11
Dashboard /wp-admin3.32 ▼0.0249.28 ▼15.54
Posts /wp-admin/edit.php3.37 ▲0.0247.57 ▲1.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.37 ▼3.13
Media Library /wp-admin/upload.php3.25 ▲0.0235.88 ▼1.24

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for LRW Widgets Bundle
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.041.66 ▼0.1938.05 ▼4.73
Dashboard /wp-admin2,203 ▲155.85 ▲0.04107.75 ▲0.1739.28 ▲1.11
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0038.50 ▲2.3033.91 ▼2.48
Add New Post /wp-admin/post-new.php1,533 ▼023.12 ▼0.21595.28 ▼55.6949.17 ▼12.30
Media Library /wp-admin/upload.php1,391 ▲64.23 ▼0.06101.54 ▼4.6044.99 ▲0.76

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-empty-space/tpl/view.php
  • 119× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-icon/lrw-icon.php:8
    • > PHP Notice
      Undefined variable: min in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-counter/tpl/view.php on line 12
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-separator/tpl/view.php on line 4
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-separator/tpl/view.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-heading/tpl/view.php on line 4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-separator/tpl/view.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-feature/lrw-feature.php:8
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-separator/tpl/view.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-member/tpl/view.php on line 9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/lrw-so-widgets-bundle/widgets/lrw-separator/tpl/view.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

lrw-so-widgets-bundle/lrw-so-widgets-bundle.php Passed 13 tests

The entry point to "LRW Widgets Bundle" version 1.1.3 is a PHP file that has certain tags in its header comment area
80 characters long description:
Extends the functions of the plugin SiteOrigin Widgets with new widgets options.

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin6,079 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
PHP325352303,402
LESS13250431,487
JavaScript1638162430
PO File1128194289
SVG15015246
CSS23629150
Markdown120075

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity6.81
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods87
▷ Static methods11.15%
▷ Public methods8698.85%
▷ Protected methods00.00%
▷ Private methods11.15%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/lrw-slider/assets/images/controls.png2.74KB1.42KB▼ 48.29%
widgets/lrw-slider/assets/images/bg_play_pause.png1.51KB0.52KB▼ 65.52%