Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/quotepro-insurance-widget/plugin.php+300
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.40ms] Passed 4 tests
Server-side resources used by Quotepro Insurance Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 6.84 ▼40.37 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.00 ▼42.64 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.48 ▼42.73 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.35 ▼87.84 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.38 ▼28.56 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_quotepro-insurance-widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Quotepro Insurance Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲213 | 13.69 ▼0.60 | 12.44 ▲10.25 | 38.96 ▼3.81 |
Dashboard /wp-admin | 2,206 ▲15 | 5.81 ▲0.93 | 103.06 ▼13.18 | 38.20 ▼9.47 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.04 | 37.21 ▼3.20 | 34.80 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.07 ▼0.22 | 679.90 ▲2.56 | 49.55 ▼10.09 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▲0.07 | 99.48 ▼12.24 | 41.27 ▼6.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/quotepro-insurance-widget/plugin.php+300
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_quotepro-insurance-widget
- widget_theysaidso_widget
- theysaidso_admin_options
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
Everything seems fine, however 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 items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: titleId in wp-content/plugins/quotepro-insurance-widget/views/admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/quotepro-insurance-widget/views/widget.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/quotepro-insurance-widget/views/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quotepro-insurance-widget/plugin.php:28
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: quotepro, insurance, widget, colorbox
quotepro-insurance-widget/plugin.php 92% from 13 tests
This is the main PHP file of "Quotepro Insurance Widget" version 2.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quotepro-insurance-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
Good job! No executable or dangerous file extensions detected423 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 80 | 97 | 229 |
PO File | 2 | 37 | 45 | 100 |
CSS | 3 | 8 | 18 | 58 |
JavaScript | 3 | 0 | 6 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/controls.png | 1.23KB | 1.28KB | 0.00% |
css/images/border.png | 0.07KB | 0.10KB | 0.00% |
css/images/overlay.png | 0.11KB | 0.15KB | 0.00% |
css/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |