84% 3veta

Code Review | 3veta Booking Page for WordPress

WordPress plugin 3veta Booking Page for WordPress scored84%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: 6.3.1
  • 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

20+ active /475 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.94ms] Passed 4 tests

This is a short check of server-side resources used by 3veta Booking Page for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.96 ▼4.70
Dashboard /wp-admin3.31 ▼0.0345.32 ▼14.44
Posts /wp-admin/edit.php3.37 ▲0.0146.39 ▲1.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.02 ▼6.50
Media Library /wp-admin/upload.php3.24 ▲0.0136.18 ▲1.94

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

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

Browser metrics Passed 4 tests

A check of browser resources used by 3veta Booking Page for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.18 ▼0.171.60 ▲0.0938.91 ▼4.97
Dashboard /wp-admin2,212 ▲325.59 ▼0.0790.10 ▲1.3740.57 ▼1.99
Posts /wp-admin/edit.php2,118 ▲181.95 ▼0.0839.39 ▲4.3034.24 ▼4.30
Add New Post /wp-admin/post-new.php1,542 ▲723.03 ▲4.75648.61 ▲52.4653.18 ▼9.04
Media Library /wp-admin/upload.php1,415 ▲184.20 ▼0.0995.86 ▼10.5342.83 ▼6.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > 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 add_action() in wp-content/plugins/3veta/inc/common.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3veta/inc/templates/admin.php:2

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)
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: booking calendar, meeting scheduling software, appointment scheduling, calendar sync, booking...

3veta/3veta.php Passed 13 tests

The main file in "3veta Booking Page for WordPress" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | Executable files are not allowed as they can serve as attack vectors
There were no executable 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

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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-logo-typography-transparent.png51.80KB18.71KB▼ 63.89%
assets/images/3veta-icon-small.png9.51KB1.65KB▼ 82.68%