Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.39ms] Passed 4 tests
A check of server-side resources used by Responsive Image Sizes Divi
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.15 ▲2.47 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.28 ▼3.71 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.20 ▲3.36 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.66 ▼0.12 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.05 ▲2.92 |
Divi Responsive Image /wp-admin/admin.php?page=wptools-divi-imgsrcset | 3.32 | 32.96 |
WP Tools /wp-admin/admin.php?page=wptools | 3.32 | 32.71 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Responsive Image Sizes Divi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.43 ▼0.20 | 1.80 ▲0.06 | 44.15 ▲5.64 |
Dashboard /wp-admin | 2,222 ▲41 | 5.61 ▼0.11 | 89.38 ▼11.29 | 41.34 ▼4.83 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.97 ▼0.01 | 41.33 ▲5.47 | 36.67 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.63 ▲0.62 | 710.23 ▲99.80 | 46.88 ▼7.73 |
Media Library /wp-admin/upload.php | 1,421 ▲27 | 4.21 ▼0.06 | 100.20 ▲3.01 | 42.61 ▼1.52 |
Divi Responsive Image /wp-admin/admin.php?page=wptools-divi-imgsrcset | 925 | 2.01 | 26.74 | 27.97 |
WP Tools /wp-admin/admin.php?page=wptools | 913 | 2.06 | 26.41 | 34.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/responsive-image-sizes-divi/resources/views/menu.php
- > /wp-content/plugins/responsive-image-sizes-divi/vendor/wpt00ls/wptools-hub/views/wptools-hub.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/responsive-image-sizes-divi/vendor/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php:36
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/responsive-image-sizes-divi/includes/modules/DiviImageSrcsetExtension.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/responsive-image-sizes-divi/vendor/pimple/pimple/src/Pimple/Psr11/Container.php:37
- > PHP Notice
Undefined variable: module_classes in wp-content/plugins/responsive-image-sizes-divi/resources/views/divi-image-srcset-module.php on line 1
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/responsive-image-sizes-divi/vendor/psr/container/src/NotFoundExceptionInterface.php:8
- > PHP Fatal error
Uncaught Error: Class 'Pimple\\Container' not found in wp-content/plugins/responsive-image-sizes-divi/src/Loader.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/responsive-image-sizes-divi/vendor/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:36
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/responsive-image-sizes-divi/includes/modules/DiviImageSrcsetModule/DiviImageSrcsetModule.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/responsive-image-sizes-divi/resources/views/divi-image-srcset-module.php:1
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/responsive-image-sizes-divi/vendor/pimple/pimple/src/Pimple/Exception/InvalidServiceIdentifierException.php:36
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: responsive images, image sizes, divi
responsive-image-sizes-divi/responsive-image-sizes-divi.php 85% from 13 tests
"Responsive Image Sizes Divi" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,803 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 333 | 948 | 1,472 |
JSX | 3 | 49 | 14 | 216 |
reStructuredText | 1 | 94 | 135 | 97 |
JavaScript | 4 | 5 | 2 | 10 |
Markdown | 1 | 5 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 2 | 10.00% |
Methods | 93 | |
▷ Static methods | 19 | 20.43% |
▷ Public methods | 91 | 97.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.15% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected