94% 3veta

Code Review | 3veta Booking Page for WordPress

WordPress plugin 3veta Booking Page for WordPress scored 94% from 54 tests.

About plugin

  • Plugin page: 3veta
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8.1
  • WordPress version: 5.9.2
  • First release: Nov 8, 2021
  • Latest release: Nov 9, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: alordiel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 143 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼296.25ms] Passed 4 tests

Server-side resources used by 3veta Booking Page for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0355.03 ▲2.71
Dashboard /wp-admin3.44 ▲0.0332.41 ▼0.88
Posts /wp-admin/edit.php3.67 ▲0.0337.00 ▼2.88
Add New Post /wp-admin/post-new.php6.91 ▼0.0692.94 ▼1,180.91
Media Library /wp-admin/upload.php3.32 ▲0.0323.59 ▼0.32

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

3veta Booking Page for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲3516.21 ▲0.305.88 ▼0.442.24 ▼0.52
Dashboard /wp-admin2,924 ▲636.01 ▼0.18116.19 ▼10.29154.41 ▼3.53
Posts /wp-admin/edit.php2,725 ▲313.23 ▼0.0264.28 ▼0.84141.92 ▼3.26
Add New Post /wp-admin/post-new.php1,677 ▼9616.34 ▼4.88401.57 ▼56.98153.90 ▼11.29
Media Library /wp-admin/upload.php1,729 ▲375.51 ▼0.01146.14 ▼9.28186.48 ▼1.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 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 50% 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
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/3veta/inc/shortcodes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3veta/inc/admin-page.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3veta/inc/wordpress.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3veta/inc/templates/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3veta/inc/common.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: 3veta, appointment booking, calendar sync, booking, appointment...

3veta/3veta.php Passed 13 tests

Analyzing the main PHP file in "3veta Booking Page for WordPress" version 1.0.1
131 characters long description:
"3veta Booking Page for WordPress" allows you to embed your 3veta booking page to your WordPress website in an easy and simple way.

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
Everything looks great! No dangerous files found in this plugin808 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP75455378
CSS1362227
JavaScript11911124
PO File1303179

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/3veta-icon-small.png9.51KB1.65KB▼ 82.68%
assets/images/3veta-logo-typography-transparent.png51.80KB18.71KB▼ 63.89%