78% zuppler-online-ordering

Code Review | Zuppler Online Ordering

WordPress plugin Zuppler Online Ordering scored78%from 54 tests.

About plugin

  • Plugin page: zuppler-online-or...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 19, 2012
  • Latest release: Apr 23, 2019
  • Number of updates: 42
  • Update frequency: every 61.8 days
  • Top authors: bogdan.silivestru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /23,909 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▲4.52ms] Passed 4 tests

An overview of server-side resources used by Zuppler Online Ordering
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1451.05 ▲10.91
Dashboard /wp-admin3.43 ▲0.1245.73 ▼4.88
Posts /wp-admin/edit.php3.54 ▲0.1850.43 ▲3.34
Add New Post /wp-admin/post-new.php6.01 ▲0.1294.14 ▲8.72
Media Library /wp-admin/upload.php3.35 ▲0.1245.24 ▲12.53

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Zuppler Online Ordering
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.62 ▼0.682.06 ▲0.2742.64 ▼0.48
Dashboard /wp-admin2,226 ▲385.89 ▲1.0394.72 ▼8.3864.60 ▲23.38
Posts /wp-admin/edit.php2,109 ▲202.05 ▲0.0137.72 ▲1.0333.84 ▲2.63
Add New Post /wp-admin/post-new.php1,537 ▲923.25 ▲5.14707.80 ▲108.7755.67 ▲7.10
Media Library /wp-admin/upload.php1,399 ▲144.22 ▼0.03100.08 ▼3.1073.76 ▲29.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/zuppler-online-ordering/inc/content-options-help.php
    • > /wp-content/plugins/zuppler-online-ordering/inc/content-start.php
    • > /wp-content/plugins/zuppler-online-ordering/inc/content-signup.php
    • > /wp-content/plugins/zuppler-online-ordering/inc/content-sidebar.php
    • > /wp-content/plugins/zuppler-online-ordering/inc/content-faq.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/zuppler-online-ordering/zuppler-online-ordering-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/zuppler-online-ordering/inc/content-options.php:3
    • > PHP Notice
      Undefined variable: plugin_url in wp-content/plugins/zuppler-online-ordering/inc/content-sidebar.php on line 11
    • > PHP Notice
      Undefined variable: plugin_url in wp-content/plugins/zuppler-online-ordering/inc/content-start.php on line 14
    • > PHP Notice
      Undefined variable: plugin_url in wp-content/plugins/zuppler-online-ordering/inc/content-sidebar.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zuppler-online-ordering/zuppler-online-ordering.php:61
    • > PHP Notice
      Undefined variable: plugin_url in wp-content/plugins/zuppler-online-ordering/inc/content-sidebar.php on line 11
    • > PHP Notice
      Undefined variable: plugin_url in wp-content/plugins/zuppler-online-ordering/inc/content-sidebar.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === zuppler-online-ordering === )
You can look at the official readme.txt

zuppler-online-ordering/zuppler-online-ordering.php Passed 13 tests

"Zuppler Online Ordering" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
62 characters long description:
This plugin lets you easily integrate Zuppler Online Ordering.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,585 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP92573711,114
CSS210733462
JavaScript1149

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.41
Average class complexity39.67
▷ Minimum class complexity1.00
▷ Maximum class complexity105.00
Average method complexity4.31
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods925.71%
▷ Protected methods2674.29%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/zuppler-icon-48px.png4.02KB2.04KB▼ 49.14%
images/zuppler-icon-36px.png3.70KB1.87KB▼ 49.35%
images/zuppler-icon-16px.png1.80KB0.95KB▼ 47.20%
images/zuppler-online-ordering.png47.73KB13.56KB▼ 71.60%
images/feature-bullet.png1.14KB0.27KB▼ 76.00%