Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.31MB] [CPU: ▼287.42ms] Passed 4 tests
Server-side resources used by Battle Suit for Divi
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.19 ▲4.68 | 84.86 ▲32.76 |
Dashboard /wp-admin | 8.21 ▲4.80 | 57.01 ▲22.24 |
Posts /wp-admin/edit.php | 8.21 ▲4.57 | 61.04 ▲18.44 |
Add New Post /wp-admin/post-new.php | 10.17 ▲3.20 | 117.20 ▼1,212.64 |
Media Library /wp-admin/upload.php | 8.21 ▲4.92 | 46.29 ▲22.28 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.21 | 45.69 |
Server storage [IO: ▲5.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 259 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_gdpr |
fs_accounts |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Battle Suit for Divi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,063 ▲309 | 16.50 ▲0.85 | 12.58 ▲6.26 | 2.41 ▼0.12 |
Dashboard /wp-admin | 3,051 ▲197 | 6.18 ▼0.02 | 133.01 ▼2.18 | 192.48 ▲30.99 |
Posts /wp-admin/edit.php | 2,877 ▲186 | 3.41 ▲0.17 | 67.85 ▲5.11 | 156.63 ▲9.80 |
Add New Post /wp-admin/post-new.php | 1,707 ▲46 | 20.22 ▲3.55 | 411.06 ▼7.91 | 207.83 ▲48.50 |
Media Library /wp-admin/upload.php | 1,864 ▲169 | 5.83 ▲0.33 | 129.23 ▼14.29 | 265.99 ▲76.66 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,499 | 2.74 | 57.91 | 114.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/ds-suit/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 4 options in the database
- fs_accounts
- fs_debug_mode
- fs_gdpr
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ds-suit/freemius/templates/ajax-loader.php
- 24× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/ds-suit/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ds-suit/includes/modules/PostButton/PostButton.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function DiviSenseiSuit\\plugin_dir_path() in wp-content/plugins/ds-suit/includes/plugin.php:118
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ds-suit/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/ds-suit/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ds-suit/includes/modules/VideoLightbox/VideoLightbox.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ds-suit/includes/modules/Bucket/Bucket.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ds-suit/includes/modules/PostMetaParent/PostMetaParent.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ds-suit/includes/modules/PostFeaturedImage/PostFeaturedImage.php:3
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/ds-suit/includes/modules/LibraryLayout/LibraryLayout.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Donate link: Invalid URI ("")
ds-suit/ds-suit.php Passed 13 tests
Analyzing the main PHP file in "Battle Suit for Divi" version 1.17.0
51 characters long description:
A useful collection of Divi modules and extensions.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin52,424 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 7,811 | 16,130 | 34,222 |
PO File | 13 | 7,053 | 8,589 | 15,462 |
JSX | 15 | 327 | 68 | 1,232 |
CSS | 32 | 129 | 5 | 794 |
JavaScript | 20 | 94 | 93 | 522 |
Markdown | 1 | 61 | 0 | 192 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 65.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 2 | 3.12% |
▷ Concrete classes | 62 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 1,246 | |
▷ Static methods | 183 | 14.69% |
▷ Public methods | 898 | 72.07% |
▷ Protected methods | 15 | 1.20% |
▷ Private methods | 333 | 26.73% |
Functions | 100 | |
▷ Named functions | 96 | 96.00% |
▷ Anonymous functions | 4 | 4.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
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/divi-sensei-100.png | 5.76KB | 3.10KB | ▼ 46.26% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/ds-suit-toolset.png | 21.01KB | 8.11KB | ▼ 61.39% |
admin/assets/divi-sensei-64.png | 3.52KB | 2.26KB | ▼ 35.67% |
freemius/assets/img/ds-suit-countdown.png | 21.01KB | 8.11KB | ▼ 61.39% |