84% winorder-wppizza-connector

Code Review | WinOrder-WPPizza-Connector

WordPress plugin WinOrder-WPPizza-Connector scored84%from 54 tests.

About plugin

  • Plugin page: winorder-wppizza-...
  • Plugin version: 1.6.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 11, 2018
  • Latest release: Apr 11, 2023
  • Number of updates: 45
  • Update frequency: every 39.3 days
  • Top authors: pixelplanet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,251 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.60ms] Passed 4 tests

Server-side resources used by WinOrder-WPPizza-Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0846.41 ▲8.52
Dashboard /wp-admin3.37 ▲0.0345.05 ▼14.87
Posts /wp-admin/edit.php3.49 ▲0.1347.70 ▼2.37
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.48 ▼5.02
Media Library /wp-admin/upload.php3.30 ▲0.0738.22 ▲3.88

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

WinOrder-WPPizza-Connector: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.27 ▼0.381.86 ▲0.0642.02 ▲0.64
Dashboard /wp-admin2,195 ▲215.62 ▲0.0788.06 ▼7.4640.14 ▲2.01
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0436.96 ▼1.5931.46 ▼8.07
Add New Post /wp-admin/post-new.php1,526 ▼022.92 ▼0.28587.02 ▼17.5784.61 ▲1.86
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0597.24 ▲0.1740.48 ▼4.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/winorder-wppizza-connector/winorder-wppizza-connector.php:575

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: wppizza, winorder, food ordering, point of sale, ecommerce...

winorder-wppizza-connector/winorder-wppizza-connector.php Passed 13 tests

The principal PHP file in "WinOrder-WPPizza-Connector" v. 1.6.14 is loaded by WordPress automatically on each request
49 characters long description:
This plugin connects your WinOrder POS to WPPizza

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
Everything looks great! No dangerous files found in this plugin404 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1186116404

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions31
▷ Named functions3096.77%
▷ Anonymous functions13.23%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin