84% wp-terapeut-booking

Code Review | WP Terapeut Booking

WordPress plugin WP Terapeut Booking scored84%from 54 tests.

About plugin

  • Plugin page: wp-terapeut-booking
  • Plugin version: 3.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: Feb 17, 2023
  • Number of updates: 20
  • Update frequency: every 166.0 days
  • Top authors: BoMoellerDK (90%)terapeutbooking (15%)

Code review

54 tests

User reviews

1 review

Install metrics

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

A check of server-side resources used by WP Terapeut Booking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.23 ▲1.27
Dashboard /wp-admin3.33 ▼0.0142.64 ▼18.39
Posts /wp-admin/edit.php3.38 ▲0.0344.01 ▼6.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.50 ▼16.64
Media Library /wp-admin/upload.php3.25 ▲0.0235.51 ▼5.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Terapeut Booking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.24 ▼0.111.65 ▼0.5645.64 ▲5.73
Dashboard /wp-admin2,207 ▲305.51 ▼0.0691.21 ▲3.2793.02 ▲55.76
Posts /wp-admin/edit.php2,115 ▲121.99 ▼0.1035.67 ▼1.3733.00 ▼3.44
Add New Post /wp-admin/post-new.php1,553 ▲2723.09 ▲0.04694.79 ▲55.9072.19 ▲32.46
Media Library /wp-admin/upload.php1,406 ▲64.13 ▼0.23108.65 ▲9.8194.72 ▲48.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-terapeut-booking/wp-terapeut-booking.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: terapeut booking

wp-terapeut-booking/wp-terapeut-booking.php Passed 13 tests

The entry point to "WP Terapeut Booking" version 3.3.1 is a PHP file that has certain tags in its header comment area
125 characters long description:
This plugin makes it possible to place a link to your Online Booking page anywhere on your website by inserting [wpterapeut].

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected166 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1192186
PHP1333480

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/wpterapeut_small.png3.39KB0.84KB▼ 75.30%
img/wpterapeut.png4.67KB1.61KB▼ 65.64%