79% ngaze-order-gateway

Code Review | NGAZE Order Gateway

WordPress plugin NGAZE Order Gateway scored 79% from 54 tests.

About plugin

  • Plugin page: ngaze-order-gateway
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2021
  • Latest release: Apr 29, 2021
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: thedigitalrestaurant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.06ms] Passed 4 tests

Server-side resources used by NGAZE Order Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.43 ▼3.07
Dashboard /wp-admin3.40 ▲0.1046.75 ▼0.62
Posts /wp-admin/edit.php3.45 ▲0.1047.94 ▼2.73
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.83 ▼12.30
Media Library /wp-admin/upload.php3.33 ▲0.1035.18 ▼2.14
Dashboard /wp-admin/plugins.php?page=meta-box3.3634.65
NGAZE OrderGate /wp-admin/edit.php?post_type=ngaze_order_gate3.3735.62
Add New /wp-admin/post-new.php?post_type=ngaze_order_gate3.4145.03

Server storage [IO: ▲0.85MB] [DB: ▲0.05MB] Passed 3 tests

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

Browser metrics Passed 4 tests

A check of browser resources used by NGAZE Order Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲11813.25 ▼1.131.61 ▼0.3240.91 ▼2.81
Dashboard /wp-admin2,253 ▲654.88 ▼1.21100.27 ▼8.5541.73 ▼0.14
Posts /wp-admin/edit.php2,113 ▲242.01 ▼0.0536.12 ▼4.6733.09 ▼2.44
Add New Post /wp-admin/post-new.php1,556 ▲4223.47 ▲5.99662.61 ▼11.8450.75 ▼3.90
Media Library /wp-admin/upload.php1,415 ▲274.20 ▲0.0196.67 ▼18.6241.63 ▼5.50
Dashboard /wp-admin/plugins.php?page=meta-box1,3342.0327.5843.84
NGAZE OrderGate /wp-admin/edit.php?post_type=ngaze_order_gate1,0801.9931.2328.52
Add New /wp-admin/post-new.php?post_type=ngaze_order_gate1,5663.0256.3562.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/templates/upload.php
    • > /wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/templates/media.php
    • > /wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/templates/image-advanced.php
    • > /wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/templates/video.php
    • > /wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/templates/audio.php
  • 64× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Datetime_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/date.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/multiple-values.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/map.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/divider.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Object_Choice_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/user.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/file-upload.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Multiple_Values_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/text-list.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Object_Choice_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/taxonomy.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/text.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/ngaze-order-gateway/external/meta-box/inc/fields/background.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: order gateway, ngaze order gateway, ngaze

ngaze-order-gateway/ngaze-order-gateway.php Passed 13 tests

The main PHP file in "NGAZE Order Gateway" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
19 characters long description:
NGAZE Order Gateway

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin10,098 lines of code in 236 files:
LanguageFilesBlank linesComment linesLines of code
PHP991,1304,1055,799
JavaScript975404572,255
CSS391531232,039
SVG1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.78
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes81
▷ Abstract classes67.41%
▷ Concrete classes7592.59%
▷ Final classes00.00%
Methods429
▷ Static methods28867.13%
▷ Public methods38188.81%
▷ Protected methods286.53%
▷ Private methods204.66%
Functions24
▷ Named functions2187.50%
▷ Anonymous functions312.50%
Constants6
▷ Global constants6100.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
15 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
external/meta-box/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
external/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
external/meta-box/img/jqueryui/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
external/meta-box/inc/about/images/online-generator.png12.95KB13.04KB0.00%
external/meta-box/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%