Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/quotepro-payment-widget/plugin.php+279
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.17ms] Passed 4 tests
An overview of server-side resources used by Quotepro Payment Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.28 ▼32.23 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.08 ▼38.58 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.95 ▼41.02 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.48 ▼96.86 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.24 ▼28.11 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_quotepro-payment-widget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Quotepro Payment Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,992 ▲246 | 14.11 ▼0.26 | 9.21 ▲7.28 | 37.50 ▼0.50 |
Dashboard /wp-admin | 2,207 ▲15 | 5.86 ▼0.07 | 94.61 ▼18.76 | 36.56 ▼6.28 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 37.27 ▲1.83 | 33.06 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 17.59 ▼5.49 | 595.75 ▼44.77 | 50.36 ▼2.86 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.24 ▲0.03 | 94.16 ▼1.74 | 41.91 ▲0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/quotepro-payment-widget/plugin.php+279
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_quotepro-payment-widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- 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 | 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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/quotepro-payment-widget/views/widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quotepro-payment-widget/plugin.php:28
- > PHP Notice
Undefined variable: titleId in wp-content/plugins/quotepro-payment-widget/views/admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/quotepro-payment-widget/views/admin.php:2
- > PHP Notice
Undefined variable: lang in wp-content/plugins/quotepro-payment-widget/views/widget.php on line 1
- > PHP Notice
Undefined variable: url in wp-content/plugins/quotepro-payment-widget/views/widget.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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 to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2 in quotepro-payment-widget/assets to your readme.txt
quotepro-payment-widget/plugin.php 92% from 13 tests
The primary PHP file in "Quotepro Payment Widget" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quotepro-payment-widget.php" instead of "plugin.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
No dangerous file extensions were detected265 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 73 | 98 | 148 |
CSS | 3 | 5 | 18 | 49 |
Markdown | 1 | 18 | 0 | 28 |
JavaScript | 3 | 0 | 6 | 23 |
PO File | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An overview 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.20 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 89.61KB | 23.20KB | ▼ 74.11% |
assets/screenshot-1.png | 15.69KB | 4.88KB | ▼ 68.90% |
css/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
css/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
assets/screenshot-3.png | 84.74KB | 27.11KB | ▼ 68.01% |