10% oms-sidebar-widgets

Code Review | OMS Sidebar Widgets

WordPress plugin OMS Sidebar Widgets scored 10% from 54 tests.

About plugin

  • Plugin page: oms-sidebar-widgets
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2014
  • Latest release: May 26, 2015
  • Number of updates: 16
  • Update frequency: every 21.4 days
  • Top authors: jklatt86 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 4,919 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/oms-sidebar-widgets/oms-sidebar-widgets.php+22
    Function create_function() is deprecated

Server metrics [RAM: ▼1.77MB] [CPU: ▼50.19ms] Passed 4 tests

Server-side resources used by OMS Sidebar Widgets
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.254.75 ▼39.88
Dashboard /wp-admin2.24 ▼1.077.26 ▼40.58
Posts /wp-admin/edit.php2.24 ▼1.128.00 ▼40.73
Add New Post /wp-admin/post-new.php2.24 ▼3.656.50 ▼79.57
Media Library /wp-admin/upload.php2.24 ▼0.996.30 ▼29.14

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 83 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_oms_sidebarmapwidget
db_upgraded
theysaidso_admin_options
widget_oms_sidebarimagewidget
widget_oms_sidebarvideowidget

Browser metrics Passed 4 tests

OMS Sidebar Widgets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲14214.66 ▲0.288.34 ▲6.5438.90 ▼5.52
Dashboard /wp-admin2,219 ▲315.88 ▲1.01119.92 ▲6.2643.90 ▲3.37
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.1639.23 ▼0.3033.69 ▼2.57
Add New Post /wp-admin/post-new.php1,519 ▼023.31 ▼0.05632.69 ▼30.1251.56 ▼15.44
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0496.76 ▼4.6642.43 ▼2.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/oms-sidebar-widgets/oms-sidebar-widgets.php+22
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_oms_sidebarvideowidget
    • widget_oms_sidebarmapwidget
    • db_upgraded
    • theysaidso_admin_options
    • widget_oms_sidebarimagewidget
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'OMS_SidebarWidget' not found in wp-content/plugins/oms-sidebar-widgets/class/class.OMS_SidebarVideoWidget.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oms-sidebar-widgets/class/class.OMS_SidebarWidget.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'OMS_SidebarWidget' not found in wp-content/plugins/oms-sidebar-widgets/class/class.OMS_SidebarMapWidget.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oms-sidebar-widgets/class/class.OMS_SidebarWidget.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'OMS_SidebarWidget' not found in wp-content/plugins/oms-sidebar-widgets/class/class.OMS_SidebarContentWidget.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'OMS_SidebarWidget' not found in wp-content/plugins/oms-sidebar-widgets/class/class.OMS_SidebarImageWidget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: image, youtube, video, google, vimeo...

oms-sidebar-widgets/oms-sidebar-widgets.php Passed 13 tests

"OMS Sidebar Widgets" version 2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
Basic sidebar widget functionality. Widgets include: Image, Video (YouTube, Vimeo), Content, Map (Google).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,637 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP6346438872
JavaScript699176318
CSS6283271
Sass5573176

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.40
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods2470.59%
▷ Protected methods1029.41%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
33 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png0.81KB0.58KB▼ 27.90%
images/play.png1.43KB1.12KB▼ 21.99%
vendor/prettyPhoto/images/prettyPhoto/default/default_thumb.png1.50KB0.61KB▼ 59.47%
vendor/prettyPhoto/images/prettyPhoto/default/sprite_y.png1.13KB0.13KB▼ 88.81%
vendor/prettyPhoto/images/prettyPhoto/default/sprite_next.png1.33KB0.39KB▼ 70.69%