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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.34ms] Passed 4 tests
This is a short check of server-side resources used by Before + After Images for Divi
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.20 ▼4.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.57 ▼3.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 55.13 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.01 ▼6.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.11 ▲3.74 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Before + After Images for Divi
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.35 | 2.00 ▲0.32 | 43.07 ▲1.12 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.02 | 90.53 ▼3.24 | 40.18 ▼3.32 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.02 | 39.22 ▼1.19 | 36.56 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.58 ▲0.52 | 621.45 ▼92.21 | 57.94 ▼0.02 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.25 ▼0.03 | 105.44 ▼2.97 | 45.49 ▲1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- 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 everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/before-after-images-for-divi/before-after-image-extension.php:37
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/before-after-images-for-divi/includes/modules/BeforeAfterImages/BeforeAfterImages.php:16
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/before-after-images-for-divi/includes/class-before-after-images-for-divi.php:17
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: slider, comparison, before, divi, after
before-after-images-for-divi/before-after-image-extension.php 92% from 13 tests
The entry point to "Before + After Images for Divi" version 1.3.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("before-after-images-for-divi.php" instead of "before-after-image-extension.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,177 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 96 | 214 | 611 |
Markdown | 1 | 212 | 0 | 453 |
PO File | 1 | 39 | 50 | 109 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 40.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 8.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 60.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected