Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.81ms] Passed 4 tests
This is a short check of server-side resources used by RA Widgets Bundle
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.22 ▼1.55 |
Dashboard /wp-admin | 3.35 ▼0.00 | 47.50 ▼13.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.62 ▲1.13 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.60 ▼11.12 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.94 ▼0.98 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for RA Widgets Bundle
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.74 ▲0.11 | 1.77 ▲0.08 | 47.13 ▼2.22 |
Dashboard /wp-admin | 2,203 ▲18 | 5.83 ▼0.05 | 97.31 ▼19.82 | 41.41 ▼7.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.05 | 35.47 ▼1.61 | 32.47 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.09 ▼0.15 | 634.18 ▼64.86 | 58.15 ▲3.97 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.19 ▼0.20 | 97.00 ▼5.52 | 41.88 ▼4.63 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- 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 everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ra-widgets-bundle/widgets/cta/tpl/default.php
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: class in wp-content/plugins/ra-widgets-bundle/widgets/headline/tpl/default.php on line 4
- > PHP Notice
Undefined variable: class in wp-content/plugins/ra-widgets-bundle/widgets/button/tpl/default.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/ra-widgets-bundle/widgets/cta/cta.php:9
- > PHP Notice
Undefined variable: class in wp-content/plugins/ra-widgets-bundle/widgets/testimonial/tpl/default.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ra-widgets-bundle/widgets/image/tpl/default.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ra-widgets-bundle/widgets/headline/tpl/default.php:7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ra-widgets-bundle/widgets/image-carousel/tpl/default.php on line 22
- > PHP Notice
Undefined variable: subtitle in wp-content/plugins/ra-widgets-bundle/widgets/cta/tpl/default.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ra-widgets-bundle/widgets/testimonial/tpl/default.php on line 6
- > PHP Notice
Undefined variable: title in wp-content/plugins/ra-widgets-bundle/widgets/testimonial/tpl/default.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: siteorigin-widgets, bundle, siteorigin-page-builder, siteorigin-widgets-api, siteorigin...
ra-widgets-bundle/ra-widgets-bundle.php Passed 13 tests
The primary PHP file in "RA Widgets Bundle" version 1.0.3 is used by WordPress to initiate all plugin functionality
77 characters long description:
A collection of widgets for WordPress built using the SiteOrigin Widgets API.
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
No dangerous file extensions were detected1,962 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 165 | 118 | 1,403 |
PO File | 1 | 109 | 135 | 241 |
JavaScript | 4 | 12 | 2 | 130 |
LESS | 3 | 4 | 0 | 97 |
Sass | 1 | 10 | 8 | 90 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 4.29 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |