Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/random-quote-of-the-day/includes/widget-curatedquotes.php+91
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.31ms] Passed 4 tests
An overview of server-side resources used by Random Quote of The Day
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.24 ▼36.33 |
Dashboard /wp-admin | 2.05 ▼1.26 | 7.02 ▼43.46 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.06 ▼43.21 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.78 ▼82.24 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.90 ▼34.30 |
Random Daily Quote /wp-admin/options-general.php?page=random-daily-quotes | 2.05 | 5.52 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_curatedquotes-widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Random Quote of The Day
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.44 ▼0.91 | 8.52 ▲6.63 | 41.31 ▼2.27 |
Dashboard /wp-admin | 2,203 ▲26 | 5.60 ▼0.05 | 82.63 ▼6.49 | 39.25 ▼2.00 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.06 ▲0.08 | 35.86 ▼0.61 | 32.84 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.19 ▼0.32 | 635.61 ▼16.12 | 55.68 ▼7.20 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.32 ▲0.17 | 98.81 ▼6.00 | 44.76 ▲0.98 |
Random Daily Quote /wp-admin/options-general.php?page=random-daily-quotes | 804 | 1.65 | 25.37 | 25.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/random-quote-of-the-day/includes/widget-curatedquotes.php+91
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_curatedquotes-widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=random-daily-quotes
- > Deprecated in wp-content/plugins/random-quote-of-the-day/includes/widget-curatedquotes.php+91
Function create_function() is deprecated
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 take a closer look at the following
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: instance in wp-content/plugins/random-quote-of-the-day/includes/views/widget-public.php on line 4
- > PHP Notice
Undefined variable: author in wp-content/plugins/random-quote-of-the-day/includes/views/widget-public.php on line 5
- > PHP Notice
Undefined variable: title in wp-content/plugins/random-quote-of-the-day/includes/views/widget-public.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/random-quote-of-the-day/includes/views/widget-admin.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/random-quote-of-the-day/includes/views/widget-public.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/random-quote-of-the-day/includes/views/widget-public.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/random-quote-of-the-day/includes/views/widget-public.php:18
- > PHP Notice
Undefined variable: instance in wp-content/plugins/random-quote-of-the-day/includes/views/widget-public.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/random-quote-of-the-day/includes/views/admin.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/random-quote-of-the-day/includes/views/widget-public.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
random-quote-of-the-day/randomdailyquote.php 92% from 13 tests
The principal PHP file in "Random Quote of The Day" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("random-quote-of-the-day.php" instead of "randomdailyquote.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected938 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 154 | 275 | 446 |
CSS | 2 | 50 | 19 | 445 |
JavaScript | 2 | 6 | 10 | 34 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 7 | 20.00% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected