Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.23MB] [CPU: ▼275.50ms] 75% from 4 tests
Server-side resources used by Footer Plugin for Divi
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,357.13ms on /wp-admin/admin.php?page=divi-footer-selector)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.14 ▲4.62 | 70.39 ▲16.48 |
Dashboard /wp-admin | 8.16 ▲4.75 | 59.24 ▲20.51 |
Posts /wp-admin/edit.php | 8.16 ▲4.52 | 58.28 ▲16.77 |
Add New Post /wp-admin/post-new.php | 10.02 ▲3.05 | 108.09 ▼1,152.23 |
Media Library /wp-admin/upload.php | 8.16 ▲4.86 | 44.34 ▲16.99 |
Freemius Debug [v.2.3.1] /wp-admin/admin.php?page=freemius | 8.16 | 50.37 |
Contact /wp-admin/admin.php?page=divi-footer-selector-contact | 8.16 | 42.45 |
MRK WP /wp-admin/admin.php?page=df-hub-v2 | 8.16 | 43.13 |
Divi Global Footer /wp-admin/admin.php?page=divi-footer-selector | 8.16 | 1,357.13 |
Server storage [IO: ▲4.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 237 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_active_plugins |
fs_accounts |
fs_gdpr |
Browser metrics Passed 4 tests
An overview of browser requirements for Footer Plugin for Divi
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲106 | 15.96 ▲0.33 | 7.24 ▼1.34 | 2.24 ▼0.02 |
Dashboard /wp-admin | 2,973 ▲112 | 6.19 ▼0.01 | 116.70 ▼22.46 | 175.72 ▲12.90 |
Posts /wp-admin/edit.php | 2,771 ▲80 | 3.25 ▲0.02 | 63.36 ▼1.65 | 154.28 ▲8.90 |
Add New Post /wp-admin/post-new.php | 1,671 ▼48 | 20.01 ▼2.71 | 402.68 ▼7.41 | 146.04 ▼11.81 |
Media Library /wp-admin/upload.php | 1,781 ▲83 | 5.69 ▲0.23 | 145.83 ▲1.76 | 203.73 ▲17.24 |
Freemius Debug [v.2.3.1] /wp-admin/admin.php?page=freemius | 1,499 | 2.46 | 57.34 | 129.48 |
Contact /wp-admin/admin.php?page=divi-footer-selector-contact | 2,099 | 4.63 | 96.98 | 146.57 |
MRK WP /wp-admin/admin.php?page=df-hub-v2 | 1,077 | 2.42 | 54.36 | 129.06 |
Divi Global Footer /wp-admin/admin.php?page=divi-footer-selector | 1,290 | 2.45 | 54.57 | 169.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_gdpr
- fs_accounts
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mrkwp-footer-for-divi/freemius/templates/ajax-loader.php
- > /wp-content/plugins/mrkwp-footer-for-divi/vendor/mrkdevelopment/diviframework-hub-v2/views/landing.php
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Pimple\\ServiceProviderInterface' not found in wp-content/plugins/mrkwp-footer-for-divi/vendor/pimple/pimple/src/Pimple/Tests/Fixtures/PimpleServiceProvider.php:32
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mrkwp-footer-for-divi/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: product_name in wp-content/plugins/mrkwp-footer-for-divi/resources/views/admin/zoho-support-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/mrkwp-footer-for-divi/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/mrkwp-footer-for-divi/vendor/pimple/pimple/src/Pimple/Tests/PimpleTest.php:34
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/mrkwp-footer-for-divi/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: product_name in wp-content/plugins/mrkwp-footer-for-divi/vendor/mrkdevelopment/diviframework-hub-v2/views/zoho-ticket-form.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mrkwp-footer-for-divi/vendor/pimple/pimple/src/Pimple/Tests/ServiceIteratorTest.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/mrkwp-footer-for-divi/resources/views/admin/zoho-support-form.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/mrkwp-footer-for-divi/vendor/pimple/pimple/src/Pimple/Exception/ExpectedInvokableException.php:36
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: diviframework, footer
mrkwp-footer-for-divi/mrkwp-footer-for-divi.php 85% from 13 tests
The principal PHP file in "Footer Plugin for Divi" v. 3.3.5 is loaded by WordPress automatically on each request
The following require your attention:
- 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 points to an invalid folder, "/languages" does not exist
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin47,926 lines of code in 184 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 149 | 7,303 | 16,671 | 30,830 |
PO File | 12 | 6,951 | 8,444 | 15,222 |
CSS | 12 | 202 | 60 | 1,330 |
JSON | 4 | 0 | 0 | 202 |
JavaScript | 3 | 34 | 59 | 194 |
reStructuredText | 1 | 94 | 135 | 97 |
YAML | 1 | 5 | 0 | 35 |
XML | 1 | 1 | 0 | 13 |
Markdown | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,710)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 49.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,710.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 2 | 2.63% |
▷ Concrete classes | 74 | 97.37% |
▷ Final classes | 2 | 2.70% |
Methods | 1,258 | |
▷ Static methods | 178 | 14.15% |
▷ Public methods | 922 | 73.29% |
▷ Protected methods | 15 | 1.19% |
▷ Private methods | 321 | 25.52% |
Functions | 164 | |
▷ Named functions | 95 | 57.93% |
▷ Anonymous functions | 69 | 42.07% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.45MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 32.92KB | 33.29KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/mrkwp-footer-for-divi.png | 13.69KB | 7.21KB | ▼ 47.37% |
assets/banner-1544x500.png | 154.33KB | 163.23KB | 0.00% |
assets/icon-128x128.png | 5.23KB | 3.03KB | ▼ 42.09% |