Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼143.31ms] 75% from 4 tests
An overview of server-side resources used by RW Divi Unite Gallery
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 3,210.87ms on /wp-admin/admin.php?page=rw-divi-unite-gallery)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.34 | 36.81 ▲9.33 |
Dashboard /wp-admin | 3.31 ▲0.25 | 47.57 ▲5.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 42.16 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.69 ▲0.26 | 93.33 ▼571.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.24 | 33.06 ▼6.43 |
RW Divi Unite Gallery /wp-admin/admin.php?page=rw-divi-unite-gallery | 3.57 | 3,210.87 |
Server storage [IO: ▲2.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 255 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_accounts |
fs_api_cache |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RW Divi Unite Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,700 ▲104 | 15.79 ▲0.10 | 8.68 ▼4.75 | 45.57 ▼4.67 |
Dashboard /wp-admin | 2,994 ▲63 | 5.95 ▼0.25 | 138.02 ▼13.84 | 117.05 ▼2.10 |
Posts /wp-admin/edit.php | 2,762 ▲23 | 2.71 ▼0.01 | 63.98 ▼7.02 | 92.88 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,684 ▲184 | 19.15 ▲0.55 | 387.94 ▲19.33 | 108.36 ▼9.58 |
Media Library /wp-admin/upload.php | 1,831 ▲24 | 5.02 ▼0.00 | 146.46 ▼10.88 | 131.69 ▲10.67 |
RW Divi Unite Gallery /wp-admin/admin.php?page=rw-divi-unite-gallery | 1,296 | 2.16 | 51.20 | 100.54 |
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
- Zombie WordPress options were found after uninstall: 4 options
- fs_api_cache
- fs_active_plugins
- fs_debug_mode
- fs_accounts
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 no errors were found, 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rw-divi-unite-gallery/freemius/templates/ajax-loader.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rw-divi-unite-gallery/custom-modules/divi-unite-gallery.php:390
- > 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 93% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: Please describe screenshot #14 in rw-divi-unite-gallery/assets to your readme.txt
rw-divi-unite-gallery/rw-divi-unite-gallery.php Passed 13 tests
The main file in "RW Divi Unite Gallery" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
115 characters long description:
RW Divi Unite Gallery provides Unite Gallery Custom Module for Divi theme and visual page builder by elegantthemes.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin40,808 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 81 | 3,842 | 9,242 | 16,513 |
JavaScript | 13 | 8,343 | 4,813 | 15,587 |
PO File | 5 | 2,095 | 2,118 | 4,740 |
Sass | 18 | 299 | 76 | 1,875 |
CSS | 17 | 548 | 71 | 1,861 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 1 | 0 | 0 | 40 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,111)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 47.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,111.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 76.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 2 | 5.41% |
▷ Concrete classes | 35 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 708 | |
▷ Static methods | 115 | 16.24% |
▷ Public methods | 531 | 75.00% |
▷ Protected methods | 13 | 1.84% |
▷ Private methods | 164 | 23.16% |
Functions | 80 | |
▷ Named functions | 80 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 106 | |
▷ Global constants | 89 | 83.96% |
▷ Class constants | 17 | 16.04% |
▷ Public constants | 17 | 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
72 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
unitegallery/images/not_loaded.png | 0.84KB | 0.63KB | ▼ 24.48% |
unitegallery/skins/alexis/images/grid_arrow_up.png | 1.29KB | 1.59KB | 0.00% |
unitegallery/skins/default/arrows_strip_right.png | 0.19KB | 0.12KB | ▼ 37.19% |
unitegallery/skins/default/tile_button_play_pause.png | 0.57KB | 0.41KB | ▼ 26.90% |
unitegallery/skins/default/tile_bullets_blue.png | 0.38KB | 0.27KB | ▼ 28.61% |