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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.25 | 4.75 ▼39.88 |
Dashboard /wp-admin | 2.24 ▼1.07 | 7.26 ▼40.58 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 8.00 ▼40.73 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 6.50 ▼79.57 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 14.66 ▲0.28 | 8.34 ▲6.54 | 38.90 ▼5.52 |
Dashboard /wp-admin | 2,219 ▲31 | 5.88 ▲1.01 | 119.92 ▲6.26 | 43.90 ▲3.37 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.16 | 39.23 ▼0.30 | 33.69 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.31 ▼0.05 | 632.69 ▼30.12 | 51.56 ▼15.44 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.23 ▲0.04 | 96.76 ▼4.66 | 42.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 346 | 438 | 872 |
JavaScript | 6 | 99 | 176 | 318 |
CSS | 6 | 2 | 83 | 271 |
Sass | 5 | 57 | 3 | 176 |
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 code | 0.28 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 70.59% |
▷ Protected methods | 10 | 29.41% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/prettyPhoto/images/prettyPhoto/facebook/btnPrevious.png | 0.81KB | 0.58KB | ▼ 27.90% |
images/play.png | 1.43KB | 1.12KB | ▼ 21.99% |
vendor/prettyPhoto/images/prettyPhoto/default/default_thumb.png | 1.50KB | 0.61KB | ▼ 59.47% |
vendor/prettyPhoto/images/prettyPhoto/default/sprite_y.png | 1.13KB | 0.13KB | ▼ 88.81% |
vendor/prettyPhoto/images/prettyPhoto/default/sprite_next.png | 1.33KB | 0.39KB | ▼ 70.69% |