Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.65MB] [CPU: ▲2.07ms] Passed 4 tests
An overview of server-side resources used by Dynamic Widget Content
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 46.19 ▲4.41 |
Dashboard /wp-admin | 3.98 ▲0.63 | 56.86 ▼0.71 |
Posts /wp-admin/edit.php | 4.10 ▲0.74 | 56.21 ▲2.63 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.75 | 102.29 ▲1.96 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 47.62 ▲12.95 |
Dynamic Widget Content /wp-admin/options-general.php?page=dwc_settings | 4.51 | 43.56 |
Server storage [IO: ▲2.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 213 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
dynamic-widget-content_version |
widget_dwc_widget |
can_compress_scripts |
dwc_option |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dynamic Widget Content
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲22 | 14.30 ▲0.06 | 1.63 ▼0.37 | 37.85 ▼6.73 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▼0.05 | 94.23 ▼0.01 | 42.71 ▲1.14 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.95 ▼0.05 | 41.17 ▲0.56 | 36.95 ▲2.23 |
Add New Post /wp-admin/post-new.php | 1,674 ▲148 | 21.02 ▼2.15 | 838.00 ▲185.79 | 62.27 ▲14.09 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.18 ▼0.06 | 98.12 ▼2.04 | 41.48 ▼3.76 |
Dynamic Widget Content /wp-admin/options-general.php?page=dwc_settings | 1,385 | 2.35 | 48.75 | 46.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- widget_dwc_widget
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- dynamic-widget-content_version
- dwc_option
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following items
- 124× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/dynamic-widget-content/vendor/vafpress/views/control/color.php:1
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/dynamic-widget-content/vendor/vafpress/views/control/radioimage.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/dynamic-widget-content/vendor/vafpress/classes/control/field/toggle.php:3
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/dynamic-widget-content/vendor/vafpress/views/control/fontawesome.php:1
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dynamic-widget-content/vendor/vafpress/config/dependencies.php on line 77
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/dynamic-widget-content/vendor/vafpress/classes/control/field/fontawesome.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dynamic-widget-content/vendor/vafpress/config/messages.php:13
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dynamic-widget-content/vendor/vafpress/config/dependencies.php on line 180
- > PHP Fatal error
Uncaught Error: Class 'VP_Option_Control_Group' not found in wp-content/plugins/dynamic-widget-content/vendor/vafpress/classes/option/control/group/menu.php:3
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/dynamic-widget-content/vendor/vafpress/views/control/codeeditor.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
2 plugin tags: dynamic content, widgets
dynamic-widget-content/dynamic-widget-content.php Passed 13 tests
This is the main PHP file of "Dynamic Widget Content" version 1.3.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
49 characters long description:
Dynamic widget content for single pages and posts
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin16,493 lines of code in 171 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 2,142 | 2,355 | 9,190 |
JavaScript | 52 | 674 | 595 | 3,490 |
CSS | 14 | 154 | 176 | 3,309 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 2 | 31 | 0 | 89 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 19.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 4 | 6.15% |
▷ Concrete classes | 61 | 93.85% |
▷ Final classes | 0 | 0.00% |
Methods | 552 | |
▷ Static methods | 93 | 16.85% |
▷ Public methods | 518 | 93.84% |
▷ Protected methods | 20 | 3.62% |
▷ Private methods | 14 | 2.54% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 37 | |
▷ Global constants | 34 | 91.89% |
▷ Class constants | 3 | 8.11% |
▷ Public constants | 3 | 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
23 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/vafpress/public/img/vp_shortcode_icon_sprite.png | 1.55KB | 0.42KB | ▼ 73.10% |
vendor/vafpress/public/img/bootstrap-colorpicker/saturation.png | 8.61KB | 5.13KB | ▼ 40.41% |
vendor/vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/vafpress/public/img/vp-logo.png | 1.94KB | 0.66KB | ▼ 65.94% |