10% omt-on-air

Code Review | LRH-OMT On Air

WordPress plugin LRH-OMT On Air scored10%from 54 tests.

About plugin

  • Plugin page: omt-on-air
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0+
  • WordPress version: 6.3.1
  • First release: Aug 4, 2011
  • Latest release: Mar 30, 2016
  • Number of updates: 28
  • Update frequency: every 60.8 days
  • Top authors: LRHGuy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,640 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/omt-on-air/wp.widget_lrhomtonair.php+345
    Function create_function() is deprecated

Server metrics [RAM: ▼1.76MB] [CPU: ▼52.66ms] Passed 4 tests

Analyzing server-side resources used by LRH-OMT On Air
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.246.21 ▼35.92
Dashboard /wp-admin2.24 ▼1.068.20 ▼40.81
Posts /wp-admin/edit.php2.24 ▼1.116.92 ▼42.04
Add New Post /wp-admin/post-new.php2.24 ▼3.647.41 ▼91.86
Media Library /wp-admin/upload.php2.24 ▼0.987.70 ▼25.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LRH-OMT On Air
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲13213.82 ▼0.458.29 ▲6.5242.82 ▼4.28
Dashboard /wp-admin2,189 ▲125.48 ▼0.3789.59 ▼0.6340.06 ▼1.28
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0033.13 ▼1.9432.68 ▼4.50
Add New Post /wp-admin/post-new.php1,526 ▼1123.09 ▲4.56678.97 ▲44.4359.11 ▼2.14
Media Library /wp-admin/upload.php1,397 ▼34.16 ▲0.00102.84 ▼3.6346.15 ▼4.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/omt-on-air/wp.widget_lrhomtonair.php+345
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • widget_bi_lrhomtonair
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/omt-on-air/wp.widget_lrhomtonair.php on line 15
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/omt-on-air/wp.widget_lrhomtonair.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/omt-on-air/wp.widget_lrhomtonair.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/omt-on-air/lrh_helper_basewpwidget.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (The widget in the admin dashboard.), #2 (Widget in 8-some theme sidebar.), #3 (Widget in Easel theme sidebar.), #4 (Widget in custom theme sidebar, with footer line.)
  • Tested up to: Invalid plugin version format
Please take inspiration from this readme.txt

omt-on-air/wp.widget_lrhomtonair.php 92% from 13 tests

Analyzing the main PHP file in "LRH-OMT On Air" version 1.4.0
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("omt-on-air.php" instead of "wp.widget_lrhomtonair.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin653 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27873653

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity41.50
▷ Minimum class complexity41.00
▷ Maximum class complexity42.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin