Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.13ms] Passed 4 tests
This is a short check of server-side resources used by Beautiful Pull Quotes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.43 ▼1.18 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.12 ▼3.70 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.61 ▼0.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 85.92 ▼6.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 37.20 ▲4.44 |
Beautiful PullQuotes /wp-admin/options-general.php?page=bpquotes | 3.20 | 29.86 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Beautiful Pull Quotes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.35 ▲0.17 | 2.24 ▲0.65 | 44.21 ▲0.34 |
Dashboard /wp-admin | 2,198 ▲20 | 5.50 ▼0.23 | 86.69 ▼14.95 | 39.11 ▼3.77 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▼0.02 | 34.84 ▼0.65 | 34.23 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.81 ▲0.58 | 677.24 ▼7.88 | 69.81 ▲10.20 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.22 ▲0.06 | 96.79 ▼0.17 | 44.75 ▼1.41 |
Beautiful PullQuotes /wp-admin/options-general.php?page=bpquotes | 710 | 1.51 | 6.97 | 24.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=bpquotes
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/beautiful-pull-quotes/beautiful-pullquotes.php on line 150 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/beautiful-pull-quotes/beautiful-pullquotes.php(150): do_settings_fields()
#1 wp-includes/class-wp-hook.php(310): bpquotes_options_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautiful-pull-quotes/beautiful-pullquotes.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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 need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Look at our settings page which has preview of styles), #2 (This is how your quotation looks when you use basic style), #3 (This is how your quotation looks when you use Gradient Style.)
beautiful-pull-quotes/beautiful-pullquotes.php 92% from 13 tests
"Beautiful Pull Quotes" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("beautiful-pull-quotes.php" instead of "beautiful-pullquotes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin222 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 33 | 103 |
CSS | 2 | 25 | 9 | 90 |
JavaScript | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bottomq.png | 1.15KB | 1.07KB | ▼ 7.21% |
images/border.png | 4.66KB | 4.42KB | ▼ 5.32% |
images/beautiful_pull_quotes.png | 8.75KB | 5.05KB | ▼ 42.28% |
images/classic_quote.png | 1.08KB | 0.88KB | ▼ 18.50% |
images/basic_view.png | 43.14KB | 13.69KB | ▼ 68.27% |