10% yummi-quotes

Code Review | Yummi Quotes

WordPress plugin Yummi Quotes scored 10% from 54 tests.

About plugin

  • Plugin page: yummi-quotes
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.1.1
  • WordPress version: 5.9.2
  • First release: Nov 13, 2016
  • Latest release: Apr 18, 2019
  • Number of updates: 26
  • Update frequency: every 33.9 days
  • Top authors: evilex (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 3,522 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
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/yummi-quotes/includes/admin.php+45
    Undefined index: action

Server metrics [RAM: ▼2.53MB] [CPU: ▼341.15ms] Passed 4 tests

A check of server-side resources used by Yummi Quotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.674.38 ▼50.15
Dashboard /wp-admin1.86 ▼1.554.25 ▼28.62
Posts /wp-admin/edit.php1.86 ▼1.784.69 ▼31.75
Add New Post /wp-admin/post-new.php1.86 ▼5.114.89 ▼1,253.67
Media Library /wp-admin/upload.php1.86 ▼1.444.05 ▼29.03
Add /wp-admin/admin.php?page=quotes_form1.864.30
Quotes /wp-admin/admin.php?page=quotes1.864.92
Settings /wp-admin/admin.php?page=quotes_options1.864.06

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 1 new table, 3 new options
New tables
wp_quotes
New WordPress options
widget_quotes
name
yummi_quotes_db_version

Browser metrics Passed 4 tests

Checking browser requirements for Yummi Quotes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,856 ▲10215.93 ▲0.185.71 ▼0.762.42 ▼0.49
Dashboard /wp-admin2,951 ▲976.02 ▼0.17115.88 ▼16.96177.20 ▲16.98
Posts /wp-admin/edit.php2,751 ▲573.13 ▼0.1162.67 ▲0.37136.93 ▼0.21
Add New Post /wp-admin/post-new.php1,757 ▲6721.12 ▲0.15416.26 ▲12.68197.23 ▲40.69
Media Library /wp-admin/upload.php1,755 ▲575.49 ▼0.04123.50 ▼21.24203.15 ▲7.13
Add /wp-admin/admin.php?page=quotes_form1,5364.2069.53147.73
Quotes /wp-admin/admin.php?page=quotes1,3942.3961.10109.57
Settings /wp-admin/admin.php?page=quotes_options1,3012.5055.03187.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/yummi-quotes/includes/admin.php+45
    Undefined index: action
  • Zombie tables were found after uninstall: 1 table
    • wp_quotes
  • The uninstall procedure has failed, leaving 3 options in the database
    • widget_quotes
    • name
    • yummi_quotes_db_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quotes_options
    • > Notice in wp-content/plugins/yummi-quotes/includes/admin.php+45
    Undefined index: action
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quotes_options
    • > Notice in wp-content/plugins/yummi-quotes/yummi-quotes.php+440
    Undefined variable: qthis
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quotes_options
    • > Notice in wp-content/plugins/yummi-quotes/yummi-quotes.php+440
    Trying to get property 'path' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quotes_options
    • > Warning in wp-content/plugins/yummi-quotes/yummi-quotes.php+440
    Use of undefined constant before_title_URL - assumed 'before_title_URL' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=quotes_form
    • > Notice in wp-content/plugins/yummi-quotes/yummi-quotes.php+557
    Undefined index: nonce
    • > GET request to /wp-admin/admin.php?page=quotes_form
    • > Notice in wp-content/plugins/yummi-quotes/yummi-quotes.php+733
    Undefined variable: widget
    • > GET request to /wp-admin/admin.php?page=quotes_form
    • > Notice in wp-content/plugins/yummi-quotes/yummi-quotes.php+733
    Trying to get property 'id' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quotes_form
    • > Notice in wp-content/plugins/yummi-quotes/yummi-quotes.php+628
    Undefined index: id
    • > GET request to /wp-admin/admin.php?page=quotes_options
    • > Notice in wp-content/plugins/yummi-quotes/includes/admin.php+183
    Undefined variable: qver

SRP 50% 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
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/yummi-quotes/includes/yummi-plugins.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yummi-quotes/includes/admin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/yummi-quotes/yummi-quotes.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/yummi-quotes/includes/shortcode.php:2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/yummi-quotes/yummi-quotes.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yummi-quotes/includes/widget.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quotes_options
    • > Network (severe)
    wp-admin/before_title_URL/includes/img/dashicons-yummi.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Screenshots: Please a description for screenshot #5 in yummi-quotes/assets to your readme.txt
You can take inspiration from this readme.txt

yummi-quotes/yummi-quotes.php 92% from 13 tests

"Yummi Quotes" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,527 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP5186316912
CSS84825603
JavaScript20112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity23.50
▷ Minimum class complexity13.00
▷ Maximum class complexity34.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/dashicons-yummi.png1.81KB0.85KB▼ 52.89%