10% quote-me

Code Review | Quote me

WordPress plugin Quote me scored10%from 54 tests.

About plugin

  • Plugin page: quote-me
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2014
  • Latest release: Mar 17, 2014
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: quincykwende (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /830 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.55 ▼32.47
Dashboard /wp-admin2.08 ▼1.2610.64 ▼51.56
Posts /wp-admin/edit.php2.08 ▼1.285.76 ▼41.76
Add New Post /wp-admin/post-new.php2.08 ▼3.815.38 ▼89.07
Media Library /wp-admin/upload.php2.08 ▼1.156.17 ▼26.00
Quote me /wp-admin/admin.php?page=quote-me/include/qk_quoteme_admin.php2.085.68
Add New /wp-admin/admin.php?page=qk_quoteme_action2.085.58
Help /wp-admin/admin.php?page=qk_quoteme_help2.085.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,048 ▲27713.87 ▼0.0513.58 ▲11.6072.14 ▲31.98
Dashboard /wp-admin2,229 ▲495.64 ▲0.1090.10 ▲2.8936.92 ▼1.87
Posts /wp-admin/edit.php2,131 ▲312.02 ▲0.0634.31 ▼2.1934.38 ▼1.48
Add New Post /wp-admin/post-new.php1,554 ▲1623.47 ▲0.41663.54 ▲14.8954.30 ▼2.21
Media Library /wp-admin/upload.php1,434 ▲344.20 ▲0.02112.94 ▲1.1949.48 ▲0.55
Quote me /wp-admin/admin.php?page=quote-me/include/qk_quoteme_admin.php9792.0228.4529.69
Add New /wp-admin/admin.php?page=qk_quoteme_action8282.0324.0322.76
Help /wp-admin/admin.php?page=qk_quoteme_help7982.0323.5922.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP997125282
CSS3394216
Markdown16018
SVG10016
JavaScript30135

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 code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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