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
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/bhm-random-quote/bhm-quote.php+89
Function create_function() is deprecated
Server metrics [RAM: ▼1.92MB] [CPU: ▼56.50ms] Passed 4 tests
Analyzing server-side resources used by BHM Random Quote
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 6.01 ▼37.42 |
Dashboard /wp-admin | 2.09 ▼1.22 | 5.67 ▼43.76 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.79 ▼47.07 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.56 ▼97.74 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 7.10 ▼27.81 |
Add New /wp-admin/post-new.php?post_type=bhm_quote | 2.09 | 6.11 |
All Quotes /wp-admin/edit.php?post_type=bhm_quote | 2.09 | 6.94 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_quote_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by BHM Random Quote
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.25 ▼0.13 | 1.76 ▼0.14 | 39.83 ▼2.87 |
Dashboard /wp-admin | 2,222 ▲42 | 5.50 ▼0.10 | 84.71 ▼6.07 | 39.97 ▼7.88 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.95 ▼0.05 | 38.86 ▲0.99 | 37.53 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,549 ▲22 | 23.11 ▼0.02 | 648.54 ▼6.43 | 59.69 ▲5.36 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.18 ▼0.00 | 94.76 ▼10.16 | 44.59 ▼4.72 |
Add New /wp-admin/post-new.php?post_type=bhm_quote | 2,063 | 6.77 | 155.83 | 63.33 |
All Quotes /wp-admin/edit.php?post_type=bhm_quote | 1,080 | 1.96 | 32.60 | 29.63 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/bhm-random-quote/bhm-quote.php+89
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_quote_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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)
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=bhm_quote
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/bhm-random-quote/bhm-quote.php+89
Function create_function() is deprecated
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bhm-random-quote/bhm-quote.php:11
- > 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
bhm-random-quote/bhm-quote.php 92% from 13 tests
"BHM Random Quote" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("bhm-random-quote.php" instead of "bhm-quote.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected116 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 44 | 116 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin