Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.58MB] [CPU: ▲21.49ms] 75% from 4 tests
Analyzing server-side resources used by Divi Collage
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,685.77ms on /wp-admin/admin.php?page=collage-for-divi)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.49 ▲4.98 | 62.81 ▲16.68 |
Dashboard /wp-admin | 8.51 ▲5.16 | 80.41 ▲28.55 |
Posts /wp-admin/edit.php | 8.51 ▲5.11 | 85.49 ▲32.67 |
Add New Post /wp-admin/post-new.php | 8.98 ▲3.05 | 124.10 ▲8.05 |
Media Library /wp-admin/upload.php | 8.51 ▲5.24 | 76.54 ▲38.51 |
Divi Collage /wp-admin/admin.php?page=collage-for-divi | 8.51 | 1,685.77 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.51 | 57.68 |
Server storage [IO: ▲3.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 174 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
fs_gdpr |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
fs_debug_mode |
widget_recent-comments |
fs_accounts |
fs_active_plugins |
Browser metrics Passed 4 tests
An overview of browser requirements for Divi Collage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.24 ▼0.47 | 1.64 ▲0.02 | 31.32 ▼15.86 |
Dashboard /wp-admin | 2,215 ▲38 | 5.52 ▼0.01 | 87.56 ▲1.90 | 43.62 ▲4.30 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.00 ▼0.02 | 42.21 ▲0.25 | 36.91 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.38 ▼4.60 | 676.42 ▲9.94 | 86.14 ▲34.30 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.22 ▲0.03 | 106.21 ▼8.20 | 52.58 ▲2.41 |
Divi Collage /wp-admin/admin.php?page=collage-for-divi | 1,023 | 2.19 | 26.50 | 47.24 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,057 | 1.66 | 23.76 | 32.10 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/collage-for-divi/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- fs_active_plugins
- can_compress_scripts
- fs_gdpr
- fs_accounts
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_debug_mode
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 22 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/collage-for-divi/includes/PhotoCollage.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/collage-for-divi/includes/modules/photo-collage/photo-collage.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gallery, collage, divi module, divi, divi addon
collage-for-divi/photo-collage.php 92% from 13 tests
The main file in "Divi Collage" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("collage-for-divi.php" instead of "photo-collage.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected31,746 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 7,392 | 16,162 | 31,293 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 5 | 34 | 59 | 196 |
JSON | 1 | 0 | 0 | 27 |
CSS | 13 | 0 | 0 | 16 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 88.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,136 | |
▷ Static methods | 173 | 15.23% |
▷ Public methods | 796 | 70.07% |
▷ Protected methods | 15 | 1.32% |
▷ Private methods | 325 | 28.61% |
Functions | 95 | |
▷ Named functions | 95 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 123 | |
▷ Global constants | 98 | 79.67% |
▷ Class constants | 25 | 20.33% |
▷ Public constants | 25 | 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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/collage-for-divi.png | 8.86KB | 3.42KB | ▼ 61.44% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |