Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.03MB] [CPU: ▼92.81ms] 75% from 4 tests
Analyzing server-side resources used by Drop Shadow Boxes
The following require your attention
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.03MB on /wp-admin/admin.php?page=drop-shadow-boxes)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.94 ▲5.47 | 62.72 ▲23.05 |
Dashboard /wp-admin | 8.96 ▲5.57 | 68.75 ▼437.44 |
Posts /wp-admin/edit.php | 8.96 ▲5.60 | 77.81 ▲32.44 |
Add New Post /wp-admin/post-new.php | 9.37 ▲3.48 | 109.58 ▲11.58 |
Media Library /wp-admin/upload.php | 8.96 ▲5.73 | 65.39 ▲31.56 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.96 | 63.67 |
Drop Shadow Boxes /wp-admin/admin.php?page=drop-shadow-boxes | 8.96 | 61.99 |
Server storage [IO: ▲3.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 200 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_dropshadowboxes_widget |
fs_accounts |
widget_recent-comments |
db_upgraded |
fs_debug_mode |
fs_active_plugins |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Drop Shadow Boxes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲55 | 14.22 ▼0.13 | 1.48 ▼0.16 | 28.89 ▼13.72 |
Dashboard /wp-admin | 2,209 ▲7 | 5.56 ▼0.19 | 109.42 ▲14.24 | 49.63 ▲5.98 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.97 ▼0.05 | 40.91 ▲4.83 | 41.82 ▲3.40 |
Add New Post /wp-admin/post-new.php | 1,903 ▲377 | 21.21 ▼1.85 | 636.18 ▲8.24 | 34.88 ▼9.50 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.23 ▼0.05 | 97.87 ▼11.87 | 44.76 ▼1.54 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,072 | 1.73 | 32.48 | 27.45 |
Drop Shadow Boxes /wp-admin/admin.php?page=drop-shadow-boxes | 974 | 1.72 | 31.68 | 55.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/drop-shadow-boxes/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-posts
- fs_active_plugins
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_debug_mode
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- fs_accounts
- widget_dropshadowboxes_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drop-shadow-boxes/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: gutenberg, raised, curl, perspective, drop shadow...
drop-shadow-boxes/dropshadowboxes.php 85% from 13 tests
"Drop Shadow Boxes" version 1.7.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("drop-shadow-boxes.php" instead of "dropshadowboxes.php")
- Description: Keep the plugin description shorter than 140 characters (currently 181 characters long)
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin35,705 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 8,153 | 17,377 | 34,109 |
JavaScript | 6 | 57 | 95 | 516 |
Sass | 2 | 37 | 1 | 342 |
CSS | 15 | 34 | 19 | 307 |
Markdown | 1 | 68 | 0 | 214 |
PO File | 2 | 193 | 344 | 190 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 91.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,275 | |
▷ Static methods | 209 | 16.39% |
▷ Public methods | 886 | 69.49% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 372 | 29.18% |
Functions | 103 | |
▷ Named functions | 103 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
images/box-button.png | 0.14KB | 0.11KB | ▼ 25.85% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/drop-shadow-boxes.png | 9.16KB | 5.26KB | ▼ 42.58% |