Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼3.04ms] Passed 4 tests
A check of server-side resources used by JS Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 40.31 ▲1.17 |
Dashboard /wp-admin | 3.81 ▲0.47 | 45.02 ▼17.49 |
Posts /wp-admin/edit.php | 3.86 ▲0.51 | 45.58 ▼1.18 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 104.64 ▲9.43 |
Media Library /wp-admin/upload.php | 3.67 ▲0.45 | 39.26 ▲5.35 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
JS Widgets: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.29 ▼1.02 | 4.54 ▲2.55 | 42.50 ▼0.13 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.97 | 97.46 ▼9.35 | 41.60 ▼0.43 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.05 ▼0.00 | 34.52 ▼6.05 | 31.15 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.28 ▲0.07 | 606.36 ▼16.83 | 61.05 ▲8.17 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▼0.02 | 97.43 ▲3.93 | 43.77 ▲3.57 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Adapter_JS_Widget' not found in wp-content/plugins/js-widgets/core-adapter-widgets/archives/class.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Adapter_JS_Widget' not found in wp-content/plugins/js-widgets/core-adapter-widgets/recent-comments/class.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget_Form_Customize_Control' not found in wp-content/plugins/js-widgets/php/class-wp-customize-js-widget-control.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Adapter_JS_Widget' not found in wp-content/plugins/js-widgets/core-adapter-widgets/recent-posts/class.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Adapter_JS_Widget' not found in wp-content/plugins/js-widgets/core-adapter-widgets/rss/class.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/js-widgets/post-collection-widget.php:37
- > PHP Fatal error
Uncaught Error: Class 'WP_JS_Widget' not found in wp-content/plugins/js-widgets/php/class-wp-adapter-js-widget.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Adapter_JS_Widget' not found in wp-content/plugins/js-widgets/core-adapter-widgets/categories/class.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Adapter_JS_Widget' not found in wp-content/plugins/js-widgets/core-adapter-widgets/pages/class.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Adapter_JS_Widget' not found in wp-content/plugins/js-widgets/core-adapter-widgets/search/class.php:13
- > PHP Fatal error
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
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: widgets, customizer, rest-api
js-widgets/js-widgets.php Passed 13 tests
"JS Widgets" version 0.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
The next generation of widgets in core, embracing JS for UI and powering the Widgets REST API.
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
Success! There were no dangerous files found in this plugin3,669 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 469 | 1,783 | 2,683 |
JavaScript | 18 | 227 | 614 | 868 |
CSS | 3 | 16 | 1 | 118 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 2 | 10.00% |
▷ Concrete classes | 18 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 155 | 93.94% |
▷ Protected methods | 10 | 6.06% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
PNG images were not found in this plugin