Benchmarks
Plugin footprint 64% 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: ▲4.82MB] [CPU: ▲469.33ms] 50% from 4 tests
A check of server-side resources used by Preloader for Divi
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,017.39ms on /wp-admin/admin.php?page=freemius)
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 469.33ms on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.42 ▲4.90 | 82.94 ▲32.19 |
Dashboard /wp-admin | 8.43 ▲5.03 | 2,354.38 ▲2,320.82 |
Posts /wp-admin/edit.php | 8.44 ▲4.80 | 1,078.79 ▲1,041.82 |
Add New Post /wp-admin/post-new.php | 11.54 ▲4.57 | 1,095.49 ▼167.87 |
Media Library /wp-admin/upload.php | 8.43 ▲5.14 | 993.71 ▲971.17 |
Redux Framework /wp-admin/tools.php?page=redux-about | 8.44 | 941.21 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.43 | 1,017.39 |
Server storage [IO: ▲8.49MB] [DB: ▲0.06MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 614 new files
Database: no new tables, 7 new options
New WordPress options |
---|
divipreloader_opts |
redux_version_upgraded_from |
fs_accounts |
divipreloader_opts-transients |
fs_gdpr |
fs_active_plugins |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Preloader for Divi
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,110 ▲356 | 16.33 ▲0.30 | 11.79 ▲4.70 | 3.03 ▲0.79 |
Dashboard /wp-admin | 3,059 ▲198 | 6.11 ▼0.08 | 120.64 ▼18.06 | 173.02 ▲13.39 |
Posts /wp-admin/edit.php | 2,771 ▲83 | 3.27 ▲0.04 | 64.31 ▼0.27 | 155.92 ▲12.54 |
Add New Post /wp-admin/post-new.php | 1,701 ▲40 | 17.06 ▲0.95 | 441.50 ▲13.20 | 155.18 ▼5.72 |
Media Library /wp-admin/upload.php | 1,775 ▲77 | 5.63 ▲0.19 | 145.57 ▲9.08 | 199.82 ▲12.79 |
Redux Framework /wp-admin/tools.php?page=redux-about | 1,378 | 4.06 | 107.68 | 235.84 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,466 | 2.74 | 54.45 | 113.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/preloader-for-divi/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 7 options
- fs_active_plugins
- fs_debug_mode
- fs_gdpr
- divipreloader_opts-transients
- fs_accounts
- divipreloader_opts
- redux_version_upgraded_from
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/preloader-for-divi/freemius/templates/ajax-loader.php
- 29× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/preloader-for-divi/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/preloader-for-divi/divipreloader_options/inc/welcome/views/changelog.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/preloader-for-divi/divipreloader_options/inc/welcome/views/support.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/preloader-for-divi/divipreloader_options/inc/welcome/views/extensions.php:64
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/preloader-for-divi/divipreloader_options/inc/extensions/customizer/inc/customizer_panel.php:11
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/preloader-for-divi/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/preloader-for-divi/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/preloader-for-divi/divipreloader_options/templates/panel/header.tpl.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/preloader-for-divi/divipreloader_options/templates/panel/footer.tpl.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/preloader-for-divi/divipreloader_options/inc/extensions/customizer/inc/customizer_devs.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires php: Invalid plugin version format
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (This is the second screen shot)
preloader-for-divi/divi_preloader.php 92% from 13 tests
The entry point to "Preloader for Divi" version 1.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("preloader-for-divi.php" instead of "divi_preloader.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected86,454 lines of code in 448 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 211 | 10,802 | 21,245 | 45,527 |
PO File | 12 | 6,960 | 8,455 | 15,240 |
JavaScript | 92 | 3,190 | 2,393 | 14,782 |
Sass | 54 | 1,187 | 60 | 7,580 |
SVG | 17 | 0 | 7 | 1,330 |
CSS | 60 | 196 | 58 | 1,033 |
JSON | 1 | 184 | 0 | 909 |
LESS | 1 | 0 | 0 | 53 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,772)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 49.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 148 | |
▷ Abstract classes | 2 | 1.35% |
▷ Concrete classes | 146 | 98.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,708 | |
▷ Static methods | 274 | 16.04% |
▷ Public methods | 1,227 | 71.84% |
▷ Protected methods | 106 | 6.21% |
▷ Private methods | 375 | 21.96% |
Functions | 104 | |
▷ Named functions | 103 | 99.04% |
▷ Anonymous functions | 1 | 0.96% |
Constants | 179 | |
▷ Global constants | 97 | 54.19% |
▷ Class constants | 82 | 45.81% |
▷ Public constants | 82 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
37 compressed PNG files occupy 0.33MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
divipreloader_options/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
divipreloader_options/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
divipreloader_options/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
divipreloader_options/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/admin/img/upgrade-s.png | 125.29KB | 54.19KB | ▼ 56.75% |