84% awebooking-elementor-integration

Code Review | AweBooking & Elementor Integration

WordPress plugin AweBooking & Elementor Integration scored84%from 54 tests.

About plugin

  • Plugin page: awebooking-elemen...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Oct 9, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: awethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /7,020 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.25ms] Passed 4 tests

A check of server-side resources used by AweBooking & Elementor Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.49 ▼4.63
Dashboard /wp-admin3.35 ▲0.0147.80 ▼22.26
Posts /wp-admin/edit.php3.47 ▲0.1149.57 ▼1.61
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.93 ▼4.49
Media Library /wp-admin/upload.php3.28 ▲0.0538.18 ▲0.73

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

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

Browser metrics Passed 4 tests

AweBooking & Elementor Integration: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.001.72 ▼0.2541.78 ▼8.35
Dashboard /wp-admin2,192 ▲125.57 ▲0.0493.37 ▼8.4240.94 ▼5.87
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0536.24 ▲0.9933.44 ▼5.65
Add New Post /wp-admin/post-new.php1,526 ▼223.71 ▲0.49695.65 ▲12.4268.80 ▲23.95
Media Library /wp-admin/upload.php1,394 ▼34.21 ▲0.05106.19 ▲4.8848.44 ▲4.79

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please take a closer look at the following
  • 33× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/awebooking-elementor-integration/templates/services/render.php on line 4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/awebooking-elementor-integration/templates/search-availability-form/render.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'AweBooking\\Elementor\\Widgets\\Abstract_Widget' not found in wp-content/plugins/awebooking-elementor-integration/inc/Widgets/Search_Availability_Form.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/awebooking-elementor-integration/awebooking-elementor.php:16
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/awebooking-elementor-integration/templates/search-availability-form/render.php on line 4
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/awebooking-elementor-integration/templates/rooms/render.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'AweBooking\\Elementor\\Widgets\\Abstract_Widget' not found in wp-content/plugins/awebooking-elementor-integration/inc/Widgets/Services.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/awebooking-elementor-integration/templates/search-availability-form/render.php:10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/awebooking-elementor-integration/templates/rooms/render.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/awebooking-elementor-integration/templates/single-room/render.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: booking, reservation, hotel booking, elementor, booking builder...

awebooking-elementor-integration/awebooking-elementor.php 85% from 13 tests

This is the main PHP file of "AweBooking & Elementor Integration" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("awebooking-elementor-integration.php" instead of "awebooking-elementor.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 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,542 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP183254132,541
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.11
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods54
▷ Static methods35.56%
▷ Public methods4481.48%
▷ Protected methods916.67%
▷ Private methods11.85%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin