Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.36ms] Passed 4 tests
This is a short check of server-side resources used by Quote of the Day by BrainyQuote
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.04 ▼2.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.39 ▼7.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.32 ▲3.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.64 ▼11.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.90 ▼0.37 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_foo_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Quote of the Day by BrainyQuote
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.17 ▼1.50 | 2.08 ▲0.17 | 43.01 ▼3.65 |
Dashboard /wp-admin | 2,200 ▲12 | 5.82 ▼0.11 | 104.21 ▼7.58 | 40.47 ▼4.60 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.01 | 39.17 ▲2.40 | 35.34 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 18.48 ▼4.99 | 640.89 ▼15.69 | 48.78 ▼4.45 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.20 ▼0.09 | 95.39 ▼5.71 | 52.02 ▲9.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_foo_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quote-of-the-day-by-brainyquote/brainyquote_widget.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #2, #3, #4 in quote-of-the-day-by-brainyquote/assets to your readme.txt
quote-of-the-day-by-brainyquote/brainyquote_widget.php 85% from 13 tests
Analyzing the main PHP file in "Quote of the Day by BrainyQuote" version 1.20
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 188 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("quote-of-the-day-by-brainyquote.php" instead of "brainyquote_widget.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
Success! There were no dangerous files found in this plugin55 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 52 | 55 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected