90% wp-restaumatic

Code Review | WP Restaumatic – Active Menu for restaurants

WordPress plugin WP Restaumatic – Active Menu for restaurants scored 90% from 54 tests.

About plugin

  • Plugin page: wp-restaumatic
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: Mar 21, 2022
  • Number of updates: 16
  • Update frequency: every 43.6 days
  • Top authors: restaumatic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,889 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.09MB] [CPU: ▼2.82ms] Passed 4 tests

A check of server-side resources used by WP Restaumatic – Active Menu for restaurants
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.44 ▼5.88
Dashboard /wp-admin3.40 ▲0.0948.13 ▲0.59
Posts /wp-admin/edit.php3.51 ▲0.1552.51 ▼0.13
Add New Post /wp-admin/post-new.php5.97 ▲0.0985.06 ▼5.86
Media Library /wp-admin/upload.php3.32 ▲0.0937.71 ▲4.79

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Restaumatic – Active Menu for restaurants
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.26 ▼1.101.71 ▼0.0841.35 ▼12.78
Dashboard /wp-admin2,240 ▲584.88 ▼0.98104.56 ▼18.4936.11 ▼11.81
Posts /wp-admin/edit.php2,120 ▲342.01 ▼0.0239.74 ▼1.5831.26 ▼7.90
Add New Post /wp-admin/post-new.php1,546 ▲422.95 ▲4.82612.47 ▼2.8762.16 ▼8.98
Media Library /wp-admin/upload.php1,422 ▲344.21 ▼0.1696.50 ▼16.3443.13 ▼3.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: restaurant menu, pizza, restaurant, food, food menu...

wp-restaumatic/wp-restaumatic.php Passed 13 tests

"WP Restaumatic – Active Menu for restaurants" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
Restaumatic Active Menu integration. Fully featured food ordering system for your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected474 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9128506360
PO File13243114

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2379.31%
▷ Protected methods00.00%
▷ Private methods620.69%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin