Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.20ms] Passed 4 tests
Server-side resources used by Dropcaps Shortcode and Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 35.87 ▼1.10 |
Dashboard /wp-admin | 3.48 ▲0.14 | 47.46 ▼10.82 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 52.33 ▲7.93 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 84.81 ▼4.77 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.30 ▲7.90 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_otw_shortcode_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dropcaps Shortcode and Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.39 ▲0.04 | 1.78 ▲0.25 | 41.90 ▲2.56 |
Dashboard /wp-admin | 2,215 ▲35 | 4.90 ▼0.69 | 85.31 ▼3.72 | 72.35 ▲31.25 |
Posts /wp-admin/edit.php | 2,141 ▲44 | 2.31 ▲0.33 | 41.26 ▲6.00 | 37.43 ▼0.44 |
Add New Post /wp-admin/post-new.php | 6,395 ▲4,858 | 27.95 ▲9.46 | 890.38 ▲280.13 | 40.10 ▼20.03 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.52 ▲0.28 | 98.27 ▼5.37 | 67.63 ▲21.36 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_otw_shortcode_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/dropcaps-shortcodes-and-widget/otw_content_manager.php:12
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_components/otw_shortcode/otw_shortcode.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_dcsw_settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_components/otw_shortcode/widgets/otw_shortcode_widget.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-captcha.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_labels/otw_dcsw_shortcode_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_esc_text() in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_dcsw_help.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_components/otw_form/otw_form.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_dropcap.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/dropcaps-shortcodes-and-widget/include/otw_components/otw_validator/otw_validator.class.php:2
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (WYSIWYG page/post editor button), #2 (OTW Shortcode Widget), #3 (Dropcaps Options), #4 (Front-end)
dropcaps-shortcodes-and-widget/otw_content_manager.php 92% from 13 tests
The main PHP file in "Dropcaps Shortcode and Widget" ver. 1.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("dropcaps-shortcodes-and-widget.php" instead of "otw_content_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11,102 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 470 | 103 | 5,222 |
PHP | 22 | 1,163 | 901 | 3,764 |
JavaScript | 14 | 506 | 132 | 2,061 |
SVG | 3 | 0 | 0 | 38 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 61.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 136 | |
▷ Static methods | 22 | 16.18% |
▷ Public methods | 103 | 75.74% |
▷ Protected methods | 27 | 19.85% |
▷ Private methods | 6 | 4.41% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
35 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_shortcode/images/pattern-4.png | 0.09KB | 0.12KB | 0.00% |
include/otw_components/otw_shortcode/images/toggle-icon.png | 0.12KB | 0.11KB | ▼ 5.04% |
include/otw_components/otw_form/img/colorpicker/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
include/otw_components/otw_shortcode/images/read-more.png | 0.17KB | 0.22KB | 0.00% |
images/otw-sbm-icon.png | 0.13KB | 0.14KB | 0.00% |