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.33MB] [CPU: ▼1.27ms] Passed 4 tests
Analyzing server-side resources used by Customize Widgets Plus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 45.51 ▲1.40 |
Dashboard /wp-admin | 3.67 ▲0.37 | 54.62 ▲2.74 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 49.41 ▲3.24 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 88.07 ▼9.81 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.85 ▲0.61 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
enabled_widget_posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Customize Widgets Plus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.32 | 1.80 ▲0.13 | 45.09 ▲0.19 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.04 | 89.95 ▲3.18 | 39.99 ▼0.38 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.03 ▲0.00 | 35.03 ▲0.07 | 33.46 ▼5.06 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.32 ▲0.26 | 639.94 ▼40.81 | 46.89 ▼7.05 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.01 | 98.66 ▼11.10 | 46.28 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- enabled_widget_posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Exception: WP_TESTS_DIR env var is empty; expected to point to {develop.svn.wordpress.org}/tests/phpunit/ in wp-content/plugins/customize-widgets-plus/tests/test-core-customize-widgets-with-widget-posts.php:6
- > PHP Fatal error
Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-widget-settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'CustomizeWidgetsPlus\\Plugin_Base' not found in wp-content/plugins/customize-widgets-plus/php/class-plugin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function CustomizeWidgetsPlus\\add_action() in wp-content/plugins/customize-widgets-plus/php/class-plugin.php:62
- > PHP Fatal error
Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-efficient-multidimensional-setting-sanitizing.php:5
- > PHP Fatal error
Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-widget-posts.php:5
- > PHP Fatal error
Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-plugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/customize-widgets-plus/php/class-wp-customize-widget-setting.php:15
- > PHP Fatal error
Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-widget-number-incrementing.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/customize-widgets-plus/php/class-widget-posts-cli-command.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tested up to: Invalid version format
- Requires at least: Invalid version format
customize-widgets-plus/customize-widgets-plus.php 92% from 13 tests
The primary PHP file in "Customize Widgets Plus" version 0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,357 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 560 | 1,413 | 2,714 |
JavaScript | 5 | 124 | 56 | 609 |
Markdown | 1 | 18 | 0 | 30 |
CSS | 1 | 1 | 5 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 188 | |
▷ Static methods | 5 | 2.66% |
▷ Public methods | 182 | 96.81% |
▷ Protected methods | 6 | 3.19% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 2 | 12.50% |
▷ Anonymous functions | 14 | 87.50% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin