Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/dx-advanced-widgets/dx-advanced-widgets.php+16
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.98ms] Passed 4 tests
Analyzing server-side resources used by DX-Advanced-Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.42 ▼37.40 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.63 ▼46.41 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.01 ▼39.44 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.37 ▼80.67 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.74 ▼25.58 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_dx_custom_articles_list |
Browser metrics Passed 4 tests
A check of browser resources used by DX-Advanced-Widgets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.29 ▼1.11 | 2.02 ▲0.28 | 44.81 ▲0.04 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▲1.06 | 104.79 ▼13.11 | 41.73 ▼4.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.02 | 39.80 ▲3.50 | 39.15 ▲6.75 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.27 ▼0.06 | 659.24 ▲20.78 | 69.40 ▲16.39 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.01 | 94.97 ▼5.84 | 43.81 ▼0.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/dx-advanced-widgets/dx-advanced-widgets.php+16
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_dx_custom_articles_list
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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 everything seems fine, this is not 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
The following issues need your attention
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dx-advanced-widgets/extension/custom-articles-list/custom_articles_list.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/dx-advanced-widgets/extension/custom-articles-list/widget.php:4
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/dx-advanced-widgets/extension/custom-articles-list/widget.php on line 54
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/dx-advanced-widgets/extension/custom-articles-list/widget.php on line 3
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/dx-advanced-widgets/extension/custom-articles-list/widget.php on line 37
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dx-advanced-widgets/extension/custom-articles-list/custom_articles_list.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/dx-advanced-widgets/extension/custom-articles-list/form.php:16
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: sidebar, widgets, widget, custom widget
dx-advanced-widgets/dx-advanced-widgets.php Passed 13 tests
"DX-Advanced-Widgets" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
Collection of advanced features of the widget. 小工具高级功能集合。
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
Everything looks great! No dangerous files found in this plugin317 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 35 | 45 | 229 |
PO File | 1 | 29 | 31 | 74 |
JavaScript | 1 | 3 | 1 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin