Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/xv-random-quotes/lib/class.constants.php+14
Constant XV_RANDOMQUOTES_TABLE already defined
Server metrics [RAM: ▼1.79MB] [CPU: ▼58.84ms] Passed 4 tests
Server-side resources used by XV Random Quotes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 4.78 ▼40.83 |
Dashboard /wp-admin | 2.22 ▼1.12 | 6.04 ▼56.53 |
Posts /wp-admin/edit.php | 2.22 ▼1.13 | 5.77 ▼46.13 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.66 | 5.75 ▼91.87 |
Media Library /wp-admin/upload.php | 2.22 ▼1.00 | 6.77 ▼30.55 |
Add New /wp-admin/admin.php?page=stray_new | 2.22 | 6.90 |
Overview /wp-admin/admin.php?page=xv-random-quotes/xv-random-quotes.php | 2.22 | 6.49 |
Tools /wp-admin/admin.php?page=stray_tools | 2.22 | 7.06 |
Settings /wp-admin/admin.php?page=stray_quotes_options | 2.22 | 6.82 |
Manage /wp-admin/admin.php?page=stray_manage | 2.22 | 5.92 |
Remove /wp-admin/admin.php?page=stray_remove | 2.22 | 6.45 |
Help /wp-admin/admin.php?page=xv_random_quotes_help | 2.22 | 5.52 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_stray_quotes |
New WordPress options |
---|
widget_recent-posts |
widget_stray_quotes |
theysaidso_admin_options |
widget_theysaidso_widget |
stray_quotes_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by XV Random Quotes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲152 | 13.51 ▼1.22 | 8.35 ▲6.39 | 38.02 ▼5.36 |
Dashboard /wp-admin | 2,243 ▲72 | 5.54 ▼0.04 | 85.15 ▼5.71 | 80.90 ▲40.48 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.00 ▲0.02 | 35.37 ▼2.37 | 34.44 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,717 ▲191 | 22.27 ▼0.58 | 665.15 ▼5.68 | 49.51 ▼2.35 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.24 ▲0.03 | 100.91 ▼12.55 | 74.03 ▲25.36 |
Add New /wp-admin/admin.php?page=stray_new | 960 | 1.66 | 23.35 | 36.05 |
Overview /wp-admin/admin.php?page=xv-random-quotes/xv-random-quotes.php | 906 | 2.17 | 27.16 | 29.76 |
Tools /wp-admin/admin.php?page=stray_tools | 1,013 | 2.19 | 21.89 | 27.65 |
Settings /wp-admin/admin.php?page=stray_quotes_options | 1,507 | 2.02 | 25.50 | 37.21 |
Manage /wp-admin/admin.php?page=stray_manage | 1,082 | 1.74 | 23.99 | 26.56 |
Remove /wp-admin/admin.php?page=stray_remove | 867 | 2.01 | 24.07 | 26.94 |
Help /wp-admin/admin.php?page=xv_random_quotes_help | 1,329 | 2.18 | 23.07 | 29.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/xv-random-quotes/lib/class.constants.php+14
Constant XV_RANDOMQUOTES_TABLE already defined
- The uninstall procedure failed, leaving 1 table in the database
- wp_stray_quotes
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- widget_recent-posts
- aep_start_date
- theysaidso_admin_options
- widget_stray_quotes
- stray_quotes_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=xv_random_quotes_help
- > Notice in wp-content/plugins/xv-random-quotes/lib/class.constants.php+14
Constant XV_RANDOMQUOTES_TABLE already defined
- > GET request to /wp-admin/admin.php?page=stray_tools
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_tools.php+169
Undefined variable: websource_selected
- > GET request to /wp-admin/admin.php?page=stray_tools
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_tools.php+183
Undefined variable: comment_scode_selected
- > GET request to /wp-admin/admin.php?page=stray_tools
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_tools.php+185
Undefined variable: title_scode_selected
- > GET request to /wp-admin/admin.php?page=stray_tools
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_tools.php+187
Undefined variable: excerpt_scode_selected
- > GET request to /wp-admin/admin.php?page=stray_tools
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_tools.php+189
Undefined variable: categories_scode_selected
- > GET request to /wp-admin/admin.php?page=stray_tools
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_tools.php+191
Undefined variable: tags_scode_selected
- > GET request to /wp-admin/admin.php?page=stray_tools
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_tools.php+193
Undefined variable: bloginfo_scode_selected
- > GET request to /wp-admin/admin.php?page=stray_tools
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_tools.php+195
Undefined variable: widget_scode_selected
- > GET request to /wp-admin/admin.php?page=stray_quotes_options
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_settings.php+119
Undefined index: stray_quotes_regular_title
- > GET request to /wp-admin/admin.php?page=stray_quotes_options
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_settings.php+120
Undefined index: stray_quotes_widget_title
- > GET request to /wp-admin/admin.php?page=stray_quotes_options
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_settings.php+256
Undefined variable: strayajax_selected
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stray_quotes_options
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_settings.php+350
Undefined variable: urlcategory
- > GET request to /wp-admin/admin.php?page=stray_quotes_options
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_settings.php+375
Undefined variable: multiuser_selected
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stray_manage
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_manage.php+376
Undefined index: bulk
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stray_manage
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_manage.php+669
Undefined variable: first
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=stray_manage
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_manage.php+669
Undefined variable: last
- > GET request to /wp-admin/admin.php?page=stray_remove
- > Notice in wp-content/plugins/xv-random-quotes/inc/stray_remove.php+9
Undefined index: mode
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
Almost there! Just fix the following items
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xv-random-quotes/inc/stray_ajax.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/xv-random-quotes/lib/class.constants.php on line 11
- > PHP Notice
Constant XV_RANDOMQUOTES_TABLE already defined in wp-content/plugins/xv-random-quotes/lib/class.constants.php on line 14
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/xv-random-quotes/lib/class.constants.php on line 13
- > PHP Notice
Constant XV_RANDOMQUOTES_TABLE already defined in wp-content/plugins/xv-random-quotes/lib/class.constants.php on line 14
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/xv-random-quotes/lib/class.constants.php on line 13
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/xv-random-quotes/lib/class.constants.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/xv-random-quotes/xv-random-quotes.php:19
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/xv-random-quotes/lib/class.constants.php on line 11
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/xv-random-quotes/lib/class.constants.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (How the management page works.), #2 (How to add a new quote.), #3 (A random quote in the sidebar.), #4 (Bulk editing in the Management page.), #5 (The bookmarklet in the Tools page.), #6 (The Settings page.), #7 (The widget options.)
xv-random-quotes/xv-random-quotes.php Passed 13 tests
"XV Random Quotes" version 1.37's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Displays and rotatse quotes and expressions anywhere in your blog.
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
Success! There were no dangerous files found in this plugin5,120 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 719 | 373 | 2,568 |
PO File | 4 | 1,038 | 1,835 | 2,316 |
JavaScript | 2 | 30 | 26 | 236 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 11.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 61.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 38.46% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 15 | 75.00% |
▷ Class constants | 5 | 25.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 13.20KB | 9.80KB | ▼ 25.76% |
screenshot-5.png | 14.89KB | 11.35KB | ▼ 23.78% |
screenshot-7.png | 14.30KB | 10.53KB | ▼ 26.37% |
screenshot-2.png | 14.51KB | 11.18KB | ▼ 22.95% |
img/lightbulb.png | 0.76KB | 0.81KB | 0.00% |