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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.90ms] Passed 4 tests
Server-side resources used by Daily Quotes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.90 ▼1.20 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.39 ▼8.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.03 ▼2.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.04 ▼12.19 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.19 ▲3.30 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_daily_quotes_id |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Daily Quotes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.42 ▼0.14 | 2.01 ▲0.18 | 39.47 ▼3.96 |
Dashboard /wp-admin | 2,203 ▲12 | 5.80 ▲0.91 | 102.37 ▲0.46 | 37.52 ▼0.86 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.01 | 35.24 ▼3.55 | 32.90 ▲1.28 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.29 ▲5.78 | 651.65 ▲21.21 | 50.67 ▼3.50 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.28 ▲0.08 | 94.37 ▼3.31 | 39.68 ▼4.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_daily_quotes_id
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/daily-quotes/widget-public.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: instance in wp-content/plugins/daily-quotes/widget-public.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/daily-quotes/widget-public.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/daily-quotes/widget-public.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/daily-quotes/unirest-php-master/tests/Unirest/BodyTest.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/daily-quotes/widget-public.php on line 13
- > PHP Notice
Undefined variable: instance in wp-content/plugins/daily-quotes/widget-public.php on line 12
- > PHP Notice
Undefined variable: author in wp-content/plugins/daily-quotes/widget-public.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/daily-quotes/daily-quotes.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/daily-quotes/unirest-php-master/tests/Unirest/RequestTest.php:9
- > PHP Notice
Undefined variable: instance in wp-content/plugins/daily-quotes/widget-public.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #4 (Display of Daily Quotes widget in the sidebar.) image missing
daily-quotes/daily-quotes.php Passed 13 tests
The entry point to "Daily Quotes" version 1.2.0 is a PHP file that has certain tags in its header comment area
49 characters long description:
A widget that displays daily inspirational quotes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,436 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 285 | 369 | 1,049 |
Markdown | 1 | 145 | 0 | 294 |
YAML | 1 | 7 | 0 | 32 |
JSON | 1 | 0 | 0 | 28 |
CSS | 1 | 2 | 6 | 19 |
XML | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 40 | 45.98% |
▷ Public methods | 82 | 94.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.75% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 39 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 39 | 100.00% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin