90% wechef

Code Review | WeChef

WordPress plugin WeChef scored90%from 54 tests.

About plugin

  • Plugin page: wechef
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: May 28, 2019
  • Latest release: May 28, 2019
  • Number of updates: 12
  • Update frequency: every 0.5 days
  • Top authors: liziweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.26ms] Passed 4 tests

Server-side resources used by WeChef
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.055,050.41 ▲5,008.29
Dashboard /wp-admin3.34 ▼0.0154.24 ▼13.98
Posts /wp-admin/edit.php3.39 ▲0.0351.01 ▼3.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.26 ▼16.44
Media Library /wp-admin/upload.php3.26 ▲0.0340.09 ▲0.74

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WeChef
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4414.72 ▲0.341.17 ▼0.2840.63 ▼0.84
Dashboard /wp-admin2,214 ▲465.61 ▼0.1781.54 ▼13.4939.97 ▼3.67
Posts /wp-admin/edit.php2,119 ▲161.95 ▼0.0333.35 ▼2.1633.30 ▼5.75
Add New Post /wp-admin/post-new.php1,539 ▲1023.20 ▲0.17655.98 ▼31.1967.33 ▲1.48
Media Library /wp-admin/upload.php1,416 ▲164.23 ▲0.04101.60 ▼2.1343.10 ▼4.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: restaurant, booking, wechef, reservations

wechef/wechef.php Passed 13 tests

The entry point to "WeChef" version 1.0.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
Intégration du module de réservation WeChef sur votre site WordPress

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
Everything looks great! No dangerous files found in this plugin146 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3510144
CSS1001
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin