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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 6.21 ▼35.92 |
Dashboard /wp-admin | 2.24 ▼1.06 | 8.20 ▼40.81 |
Posts /wp-admin/edit.php | 2.24 ▼1.11 | 6.92 ▼42.04 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 7.41 ▼91.86 |
Media Library /wp-admin/upload.php | 2.24 ▼0.98 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲132 | 13.82 ▼0.45 | 8.29 ▲6.52 | 42.82 ▼4.28 |
Dashboard /wp-admin | 2,189 ▲12 | 5.48 ▼0.37 | 89.59 ▼0.63 | 40.06 ▼1.28 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▼0.00 | 33.13 ▼1.94 | 32.68 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.09 ▲4.56 | 678.97 ▲44.43 | 59.11 ▼2.14 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.16 ▲0.00 | 102.84 ▼3.63 | 46.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
- > PHP Warning
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 78 | 73 | 653 |
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 code | 0.29 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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