84% cf7-calendly-integration

Code Review | Form To Online Booking

WordPress plugin Form To Online Booking scored84%from 54 tests.

About plugin

  • Plugin page: cf7-calendly-inte...
  • Plugin version: 1.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2020
  • Latest release: Mar 12, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: nabeeltahir12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,073 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.01MB] [CPU: ▼4.44ms] Passed 4 tests

An overview of server-side resources used by Form To Online Booking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.94 ▲1.15
Dashboard /wp-admin3.32 ▲0.0251.33 ▼5.46
Posts /wp-admin/edit.php3.37 ▲0.0154.31 ▲5.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.50 ▼13.76
Media Library /wp-admin/upload.php3.24 ▲0.0137.48 ▲0.30

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Form To Online Booking
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲12613.63 ▼0.755.54 ▲3.5742.54 ▼0.64
Dashboard /wp-admin2,231 ▲285.83 ▼0.07107.00 ▼8.7741.32 ▼3.95
Posts /wp-admin/edit.php2,114 ▲142.04 ▲0.0240.13 ▲3.4037.84 ▲3.57
Add New Post /wp-admin/post-new.php1,553 ▲2223.32 ▲0.45666.56 ▲40.4555.52 ▼3.64
Media Library /wp-admin/upload.php1,413 ▲134.31 ▲0.1199.70 ▼13.4244.04 ▼2.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cf7-calendly-integration/admin/cf7_tab.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-calendly-integration/public/public-form.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-calendly-integration/public/public-form.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: cf7, wp calendly, calendly, integration

cf7-calendly-integration/calendly-cf7.php 85% from 13 tests

"Form To Online Booking" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7-calendly-integration.php" instead of "calendly-cf7.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin248 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32225177
JavaScript110241
CSS16030

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected