Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.04ms] Passed 4 tests
This is a short check of server-side resources used by OTW TinyMCE Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 44.55 ▲3.59 |
Dashboard /wp-admin | 3.45 ▲0.10 | 54.49 ▼7.90 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.66 ▲1.89 |
Add New Post /wp-admin/post-new.php | 5.57 ▼0.31 | 81.39 ▼17.73 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.24 ▲6.15 |
Server storage [IO: ▲0.79MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_otw_shortcode_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
OTW TinyMCE Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,095 ▲349 | 18.36 ▲4.04 | 2.74 ▲0.94 | 43.50 ▼2.96 |
Dashboard /wp-admin | 2,486 ▲285 | 8.46 ▲3.49 | 174.73 ▲65.06 | 75.78 ▲33.13 |
Posts /wp-admin/edit.php | 2,536 ▲436 | 6.02 ▲3.98 | 122.96 ▲85.31 | 37.99 ▲2.16 |
Add New Post /wp-admin/post-new.php | 6,563 ▲5,032 | 28.69 ▲5.50 | 1,086.69 ▲432.41 | 42.62 ▼14.63 |
Media Library /wp-admin/upload.php | 1,828 ▲428 | 7.61 ▲3.37 | 170.75 ▲61.60 | 89.11 ▲41.60 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_otw_shortcode_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/otw-tinymce-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/otw-tinymce-widget/include/otw_mcsw_settings.php:4
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/otw-tinymce-widget/include/otw_components/otw_shortcode/otw_shortcode.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/otw-tinymce-widget/include/otw_components/otw_validator/otw_validator.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/otw-tinymce-widget/include/otw_labels/otw_mcsw_shortcode_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/otw-tinymce-widget/include/otw_components/otw_form/otw_form.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/otw-tinymce-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-captcha.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/otw-tinymce-widget/otw_content_manager.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/otw-tinymce-widget/include/otw_components/otw_shortcode/widgets/otw_shortcode_widget.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_esc_text() in wp-content/plugins/otw-tinymce-widget/include/otw_mcsw_help.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/otw-tinymce-widget/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_html_editor.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (OTW Shortcode Widget), #2 (TinyMCE Options)
otw-tinymce-widget/otw_content_manager.php 92% from 13 tests
The primary PHP file in "OTW TinyMCE Widget" version 1.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("otw-tinymce-widget.php" instead of "otw_content_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected10,778 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 12 | 470 | 103 | 5,222 |
PHP | 21 | 1,140 | 902 | 3,753 |
JavaScript | 12 | 456 | 70 | 1,765 |
SVG | 3 | 0 | 0 | 38 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 61.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 4.52 |
▷ 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 | 137 | |
▷ Static methods | 22 | 16.06% |
▷ Public methods | 104 | 75.91% |
▷ Protected methods | 27 | 19.71% |
▷ Private methods | 6 | 4.38% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
33 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_shortcode/images/diag-background-translucent.png | 0.08KB | 0.10KB | 0.00% |
include/otw_components/otw_shortcode/images/pattern-1.png | 0.08KB | 0.09KB | 0.00% |
include/otw_components/otw_shortcode/images/gm-delete.png | 0.31KB | 0.38KB | 0.00% |
include/otw_components/otw_shortcode/images/blockquote-testimonial.png | 0.16KB | 0.20KB | 0.00% |
include/otw_components/otw_shortcode/images/read-more.png | 0.17KB | 0.22KB | 0.00% |