Benchmarks
Plugin footprint 83% 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: ▲1.02MB] [CPU: ▲4.53ms] Passed 4 tests
Analyzing server-side resources used by Quotes Shortcode and Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.02 | 51.80 ▲7.29 |
Dashboard /wp-admin | 4.34 ▲0.99 | 56.06 ▼6.82 |
Posts /wp-admin/edit.php | 4.39 ▲1.03 | 59.97 ▲10.41 |
Add New Post /wp-admin/post-new.php | 6.94 ▲1.05 | 94.47 ▲7.22 |
Media Library /wp-admin/upload.php | 4.28 ▲1.05 | 55.46 ▲20.89 |
License Manager /wp-admin/admin.php?page=otw-qtsw-lm | 4.30 | 208.60 |
otwfcr /wp-admin/admin.php?page=otwfcr | 4.23 | 43.92 |
Settings /wp-admin/admin.php?page=otw-qtsw-settings | 4.23 | 42.24 |
Server storage [IO: ▲2.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 127 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_otw_shortcode_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Quotes Shortcode and Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.35 ▼1.27 | 1.62 ▼0.38 | 39.37 ▼4.64 |
Dashboard /wp-admin | 2,237 ▲85 | 5.07 ▼0.64 | 110.58 ▲5.98 | 72.83 ▲30.09 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.34 ▲0.29 | 35.70 ▲0.28 | 34.67 ▲1.59 |
Add New Post /wp-admin/post-new.php | 6,392 ▲4,873 | 27.85 ▲4.66 | 916.72 ▲219.23 | 37.19 ▼13.87 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.50 ▲0.25 | 104.49 ▼0.98 | 43.29 ▼2.98 |
License Manager /wp-admin/admin.php?page=otw-qtsw-lm | 956 | 1.87 | 27.10 | 31.52 |
otwfcr /wp-admin/admin.php?page=otwfcr | 816 | 1.89 | 25.74 | 20.95 |
Settings /wp-admin/admin.php?page=otw-qtsw-settings | 921 | 2.04 | 27.54 | 38.13 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_otw_shortcode_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/quotes-shortcode-and-widget/include/otw_components/otw_factory/views/action_message.php
- > /wp-content/plugins/quotes-shortcode-and-widget/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quotes-shortcode-and-widget/include/otw_components/otw_shortcode/widgets/otw_shortcode_widget.class.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/quotes-shortcode-and-widget/include/otw_components/otw_factory/views/license_manager.php:3
- > PHP Notice
Undefined variable: return_url in wp-content/plugins/quotes-shortcode-and-widget/include/otw_components/otw_factory/views/action_message.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/quotes-shortcode-and-widget/include/otw_qtsw_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/quotes-shortcode-and-widget/otw_content_manager.php:11
- > PHP Fatal error
Uncaught Error: Class 'OTW_Shortcodes' not found in wp-content/plugins/quotes-shortcode-and-widget/include/otw_components/otw_shortcode/shortcodes/otw_shortcode_quote.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/quotes-shortcode-and-widget/include/otw_labels/otw_qtsw_factory_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/quotes-shortcode-and-widget/include/otw_components/otw_form/otw_form.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/quotes-shortcode-and-widget/include/otw_labels/otw_qtsw_shortcode_object.labels.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/quotes-shortcode-and-widget/include/otw_components/otw_shortcode/otw_shortcode.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (WYSIWYG page/post editor button), #2 (OTW Shortcode Widget), #3 (Quotes Options), #4 (Front-end)
quotes-shortcode-and-widget/otw_content_manager.php 92% from 13 tests
"Quotes Shortcode and Widget" version 1.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quotes-shortcode-and-widget.php" instead of "otw_content_manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin17,012 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 472 | 113 | 7,722 |
PHP | 27 | 1,430 | 922 | 4,503 |
SVG | 4 | 0 | 0 | 2,709 |
JavaScript | 14 | 506 | 132 | 2,061 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 76.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 22 | 13.84% |
▷ Public methods | 120 | 75.47% |
▷ Protected methods | 27 | 16.98% |
▷ Private methods | 12 | 7.55% |
Functions | 47 | |
▷ Named functions | 47 | 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
PNG files should be compressed to save space and minimize bandwidth usage
35 compressed PNG files occupy 0.30MB
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_form/img/colorpicker/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
include/otw_components/otw_form/img/colorpicker/colorpicker_rgb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |
include/otw_components/otw_shortcode/images/pattern-1.png | 0.08KB | 0.09KB | 0.00% |
include/otw_components/otw_shortcode/images/sidebars-icon-placeholder.png | 0.15KB | 0.15KB | 0.00% |