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
- Install procedure had errors
- > Deprecated in wp-content/plugins/quotepro-office-widget/plugin.php+261
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.57ms] Passed 4 tests
A check of server-side resources used by Quotepro Office Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 10.04 ▼35.77 |
Dashboard /wp-admin | 2.10 ▼1.20 | 7.49 ▼42.05 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.42 ▼45.39 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.68 ▼95.08 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.43 ▼29.71 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_quotepro-office-widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Quotepro Office Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲195 | 13.50 ▼1.15 | 13.13 ▲11.40 | 43.88 ▼9.02 |
Dashboard /wp-admin | 2,199 ▲25 | 5.65 ▼0.02 | 88.91 ▼14.48 | 41.79 ▲1.28 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.04 | 42.23 ▲2.08 | 36.36 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 22.91 ▼0.36 | 678.54 ▲43.30 | 52.22 ▼6.65 |
Media Library /wp-admin/upload.php | 1,398 ▲4 | 4.21 ▲0.00 | 96.67 ▲1.90 | 45.16 ▲1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/quotepro-office-widget/plugin.php+261
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_quotepro-office-widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: url in wp-content/plugins/quotepro-office-widget/views/widget.php on line 1
- > PHP Notice
Undefined variable: titleId in wp-content/plugins/quotepro-office-widget/views/admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/quotepro-office-widget/views/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/quotepro-office-widget/views/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quotepro-office-widget/plugin.php:28
- > PHP Notice
Undefined variable: lang in wp-content/plugins/quotepro-office-widget/views/widget.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: insurance, office, colorbox, widget, quotepro...
quotepro-office-widget/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Quotepro Office Widget" version 2.0.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("quotepro-office-widget.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected247 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 98 | 136 |
CSS | 3 | 5 | 18 | 49 |
Markdown | 1 | 16 | 0 | 24 |
JavaScript | 3 | 0 | 6 | 21 |
PO File | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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
Using a strong compression for your PNG files is a great way to speed-up 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/overlay.png | 0.11KB | 0.15KB | 0.00% |
css/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
css/images/border.png | 0.07KB | 0.10KB | 0.00% |
css/images/controls.png | 1.23KB | 1.28KB | 0.00% |