Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/widget-builder/classes/custom-widget-display.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; Tribe_Widget_Builder_Display has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼55.13ms] Passed 4 tests
Analyzing server-side resources used by Widget Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.19 ▼33.25 |
Dashboard /wp-admin | 2.18 ▼1.16 | 6.83 ▼54.97 |
Posts /wp-admin/edit.php | 2.19 ▼1.18 | 6.54 ▼40.75 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 6.57 ▼91.54 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.15 ▼27.17 |
Widget Builder /wp-admin/edit.php?post_type=tribe_widget_builder | 2.19 | 7.36 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Widget Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.35 ▲0.00 | 1.57 ▼0.23 | 45.55 ▲6.66 |
Dashboard /wp-admin | 2,199 ▲21 | 5.48 ▼0.14 | 82.81 ▼16.68 | 38.26 ▼1.04 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.04 | 35.12 ▼0.94 | 36.63 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,531 ▼18 | 23.26 ▲5.09 | 672.84 ▲16.05 | 59.26 ▼12.07 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.04 | 100.62 ▲4.47 | 44.12 ▼5.09 |
Widget Builder /wp-admin/edit.php?post_type=tribe_widget_builder | 1,068 | 1.97 | 29.39 | 29.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/widget-builder/classes/custom-widget-display.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; Tribe_Widget_Builder_Display has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=tribe_widget_builder
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/widget-builder/classes/custom-widget-display.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; Tribe_Widget_Builder_Display has a deprecated constructor
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/widget-builder/views/metabox_link.php
- > /wp-content/plugins/widget-builder/views/widget_options.php
- > /wp-content/plugins/widget-builder/views/metabox_admin.php
- > /wp-content/plugins/widget-builder/views/widget_dashboard.php
- > /wp-content/plugins/widget-builder/views/metabox_pub.php
- > /wp-content/plugins/widget-builder/views/widget.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Factory' not found in wp-content/plugins/widget-builder/lib/tribe-widget-factory/Tribe_WP_Widget_Factory.php:33
- > PHP Fatal error
Cannot use lexical variable $widget as a parameter name in wp-content/plugins/widget-builder/classes/wp_add_dashboard_widget.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-builder/lib/tribe-widget-factory/tribe-widget-factory.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (How the default display template looks in the dashboard (when enabled).) image required
widget-builder/widget-builder.php Passed 13 tests
This is the main PHP file of "Widget Builder" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
118 characters long description:
This plugin creates predefined content widgets that can be used in multiple sidebars while being centrally configured.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin532 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 141 | 292 | 464 |
PO File | 1 | 25 | 40 | 68 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 3 | 9.38% |
▷ Public methods | 28 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.50% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.31MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 83.71KB | 32.36KB | ▼ 61.35% |
screenshot-2.png | 49.52KB | 20.09KB | ▼ 59.43% |
screenshot-4.png | 10.71KB | 4.85KB | ▼ 54.77% |
screenshot-5.png | 83.62KB | 27.59KB | ▼ 67.00% |
screenshot-1.png | 86.13KB | 29.10KB | ▼ 66.21% |