Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/quote-me/include/qk_quoteme_install.php+5
Use of undefined constant QK_QUOTEME_VERSION - assumed 'QK_QUOTEME_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.94MB] [CPU: ▼53.72ms] Passed 4 tests
A check of server-side resources used by Quote me
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.55 ▼32.47 |
Dashboard /wp-admin | 2.08 ▼1.26 | 10.64 ▼51.56 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.76 ▼41.76 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.38 ▼89.07 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.17 ▼26.00 |
Quote me /wp-admin/admin.php?page=quote-me/include/qk_quoteme_admin.php | 2.08 | 5.68 |
Add New /wp-admin/admin.php?page=qk_quoteme_action | 2.08 | 5.58 |
Help /wp-admin/admin.php?page=qk_quoteme_help | 2.08 | 5.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_qk_quoteme |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
qk_quoteme_version |
Browser metrics Passed 4 tests
Checking browser requirements for Quote me
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,048 ▲277 | 13.87 ▼0.05 | 13.58 ▲11.60 | 72.14 ▲31.98 |
Dashboard /wp-admin | 2,229 ▲49 | 5.64 ▲0.10 | 90.10 ▲2.89 | 36.92 ▼1.87 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.02 ▲0.06 | 34.31 ▼2.19 | 34.38 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,554 ▲16 | 23.47 ▲0.41 | 663.54 ▲14.89 | 54.30 ▼2.21 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.20 ▲0.02 | 112.94 ▲1.19 | 49.48 ▲0.55 |
Quote me /wp-admin/admin.php?page=quote-me/include/qk_quoteme_admin.php | 979 | 2.02 | 28.45 | 29.69 |
Add New /wp-admin/admin.php?page=qk_quoteme_action | 828 | 2.03 | 24.03 | 22.76 |
Help /wp-admin/admin.php?page=qk_quoteme_help | 798 | 2.03 | 23.59 | 22.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/quote-me/include/qk_quoteme_install.php+5
Use of undefined constant QK_QUOTEME_VERSION - assumed 'QK_QUOTEME_VERSION' (this will throw an Error in a future version of PHP)
- Zombie tables were found after uninstall: 1 table
- wp_qk_quoteme
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- qk_quoteme_version
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qk_quoteme_help
- > Warning in wp-content/plugins/quote-me/include/qk_quoteme_install.php+5
Use of undefined constant QK_QUOTEME_VERSION - assumed 'QK_QUOTEME_VERSION' (this will throw an Error in a future version of PHP)
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=qk_quoteme_help
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=qk_quoteme_action
- > Notice in wp-content/plugins/quote-me/include/qk_quoteme_add_view.php+84
Undefined index: author
- > GET request to /wp-admin/admin.php?page=qk_quoteme_action
- > Notice in wp-content/plugins/quote-me/include/qk_quoteme_add_view.php+89
Undefined index: quote
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/quote-me/include/qk_quoteme_add_view.php
- > /wp-content/plugins/quote-me/include/qk_quoteme_template_content.php
- > /wp-content/plugins/quote-me/include/qk_quoteme_help_view.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: quotes in wp-content/plugins/quote-me/include/qk_quoteme_template_content.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/quote-me/quote-me.php:38
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/quote-me/include/qk_quoteme_template_content.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/quote-me/include/qk_quoteme_uninstall.php on line 5
- > PHP Warning
Use of undefined constant QK_QUOTEME_PLUGIN_URL - assumed 'QK_QUOTEME_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/quote-me/include/qk_quoteme_add_view.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function qk_quoteme_all() in wp-content/plugins/quote-me/include/qk_quoteme_admin_view.php:15
- > PHP Warning
Use of undefined constant QK_QUOTEME_VERSION - assumed 'QK_QUOTEME_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/quote-me/include/qk_quoteme_install.php on line 5
- > PHP Warning
Use of undefined constant QK_QUOTEME_PLUGIN_URL - assumed 'QK_QUOTEME_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/quote-me/include/qk_quoteme_help_view.php on line 1
- > PHP Warning
Use of undefined constant QK_QUOTEME_NAME - assumed 'QK_QUOTEME_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/quote-me/include/qk_quoteme_help_view.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/quote-me/include/qk_quoteme_uninstall.php:9
- > PHP Notice
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: quote, quote rotator
quote-me/quote-me.php 92% from 13 tests
The main PHP script in "Quote me" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected537 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 97 | 125 | 282 |
CSS | 3 | 39 | 4 | 216 |
Markdown | 1 | 6 | 0 | 18 |
SVG | 1 | 0 | 0 | 16 |
JavaScript | 3 | 0 | 13 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected