Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼2.04ms] 75% from 4 tests
This is a short check of server-side resources used by Brozzme Fullwidth and Automatic Layout in Divi
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 795.58ms on /wp-admin/admin.php?page=brozzme-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 44.97 ▲0.36 |
Dashboard /wp-admin | 3.48 ▲0.18 | 50.31 ▼10.27 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.60 ▲2.06 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 116.93 ▲1.88 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.45 ▼0.11 |
Fullwidth Divi /wp-admin/admin.php?page=brozzme-fullwidth-divi | 3.37 | 35.94 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 3.53 | 795.58 |
Server storage [IO: ▲0.12MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
bfd_general_settings |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Brozzme Fullwidth and Automatic Layout in Divi: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.42 ▲0.03 | 1.89 ▼0.27 | 48.22 ▲4.06 |
Dashboard /wp-admin | 2,232 ▲44 | 4.91 ▲0.04 | 103.40 ▼4.15 | 39.58 ▼1.71 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 1.98 ▲0.00 | 40.09 ▲0.30 | 33.76 ▼3.87 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.23 ▲5.70 | 663.64 ▼30.61 | 57.79 ▼2.80 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.22 ▲0.10 | 95.90 ▼21.88 | 53.01 ▲5.49 |
Fullwidth Divi /wp-admin/admin.php?page=brozzme-fullwidth-divi | 915 | 2.08 | 26.63 | 30.94 |
Brozzme /wp-admin/admin.php?page=brozzme-plugins | 1,122 | 2.02 | 24.14 | 47.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method brozzme_fullwidth_divi::uninstall() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/brozzme-fullwidth-divi/includes/brozzme_fullwidth_divi_core.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/brozzme-fullwidth-divi/includes/brozzme_fullwidth_divi_settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/brozzme-fullwidth-divi/brozzme_fullwidth_divi.php:17
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
brozzme-fullwidth-divi/brozzme_fullwidth_divi.php 85% from 13 tests
The primary PHP file in "Brozzme Fullwidth and Automatic Layout in Divi" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brozzme-fullwidth-divi.php" instead of "brozzme_fullwidth_divi.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,119 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 170 | 156 | 737 |
CSS | 1 | 24 | 5 | 226 |
PO File | 1 | 48 | 60 | 156 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 4 | 7.84% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/logo-wps-200x200px.png | 30.17KB | 7.41KB | ▼ 75.43% |