84% experitus-form

Code Review | Experitus Booking Form

WordPress plugin Experitus Booking Form scored84%from 54 tests.

About plugin

  • Plugin page: experitus-form
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 21, 2016
  • Latest release: Aug 11, 2016
  • Number of updates: 23
  • Update frequency: every 4.9 days
  • Top authors: alwex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,422 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: ▼8.88ms] Passed 4 tests

An overview of server-side resources used by Experitus Booking Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.73 ▼3.11
Dashboard /wp-admin3.33 ▼0.0143.51 ▼14.66
Posts /wp-admin/edit.php3.45 ▲0.0946.04 ▲1.77
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.71 ▼19.50
Media Library /wp-admin/upload.php3.25 ▲0.0337.27 ▲6.54
Experitus Form /wp-admin/tools.php?page=experitus-form3.2630.56

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 15 new options
New WordPress options
widget_recent-comments
experitus_options_check
experitus_request_attributes
widget_recent-posts
experitus_block_dates
experitus_connection_data
experitus_ssl_verifypeer
experitus_countries
db_upgraded
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by Experitus Booking Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.141.75 ▲0.1340.42 ▲0.48
Dashboard /wp-admin2,210 ▲225.83 ▲0.92132.75 ▲20.0345.51 ▲2.32
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0738.31 ▲1.9534.26 ▼2.86
Add New Post /wp-admin/post-new.php1,541 ▲2223.22 ▲0.03671.58 ▲7.1166.39 ▲12.39
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.07106.78 ▲9.9247.35 ▲1.10
Experitus Form /wp-admin/tools.php?page=experitus-form7992.0528.5828.64

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/experitus-form/includes/views/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/experitus-form/includes/views/form.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/experitus-form/includes/views/_notifications.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add a description for screenshot #3 in experitus-form/assets to your readme.txt
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
The official readme.txt might help

experitus-form/experitus-form.php Passed 13 tests

The entry point to "Experitus Booking Form" version 0.4 is a PHP file that has certain tags in its header comment area
87 characters long description:
This plugins integrates your WP site and Experitus account by installing an orders form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,014 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8124155706
JavaScript276271
CSS10037

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity43.00
▷ Minimum class complexity9.00
▷ Maximum class complexity69.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods1856.25%
▷ Protected methods412.50%
▷ Private methods1031.25%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected