77% wavenami-forms-and-mapping

Code Review | Wavenami Ticketing, Symposiums, Application Forms & Mapping

WordPress plugin Wavenami Ticketing, Symposiums, Application Forms & Mapping scored77%from 54 tests.

About plugin

  • Plugin page: wavenami-forms-an...
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2023
  • Latest release: Nov 8, 2023
  • Number of updates: 20
  • Update frequency: every 15.0 days
  • Top authors: wavenami (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲2.00MB] [CPU: ▲0.56ms] Passed 4 tests

A check of server-side resources used by Wavenami Ticketing, Symposiums, Application Forms & Mapping
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.39 ▲1.9252.57 ▲11.03
Dashboard /wp-admin5.41 ▲2.0650.88 ▼13.04
Posts /wp-admin/edit.php5.41 ▲2.0553.57 ▲9.44
Add New Post /wp-admin/post-new.php7.84 ▲1.9483.34 ▼3.93
Media Library /wp-admin/upload.php5.41 ▲2.1842.60 ▲9.77
Wavenami /wp-admin/options-general.php?page=wavenami_plugin_options5.4238.66

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 390 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
wvnmi_account_information
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Wavenami Ticketing, Symposiums, Application Forms & Mapping
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲3914.15 ▼0.181.88 ▲0.1645.01 ▲1.42
Dashboard /wp-admin2,209 ▲345.64 ▲0.0992.23 ▼25.1139.98 ▼5.28
Posts /wp-admin/edit.php2,113 ▲132.04 ▲0.1040.84 ▲5.5235.60 ▲1.06
Add New Post /wp-admin/post-new.php1,545 ▲1925.09 ▲1.77640.96 ▼49.2966.40 ▲4.24
Media Library /wp-admin/upload.php1,411 ▲174.17 ▲0.01101.53 ▲4.5240.81 ▼3.02
Wavenami /wp-admin/options-general.php?page=wavenami_plugin_options8701.6425.1225.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wavenami_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wavenami_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wavenami-forms-and-mapping/src/assets/wavenami-theme-override/page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wavenami-forms-and-mapping/wavenami-template.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wavenami-forms-and-mapping/src/assets/wavenami-theme-override/header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/wavenami-forms-and-mapping/src/assets/wavenami-theme-override/entry.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wavenami-forms-and-mapping/src/assets/wavenami-theme-override/functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wavenami-forms-and-mapping/src/assets/wavenami-theme-override/index.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wavenami-forms-and-mapping/src/assets/wavenami-theme-override/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wavenami-forms-and-mapping/src/assets/wavenami-theme-override/404.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wavenami-forms-and-mapping/src/assets/wavenami-theme-override/single.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Get your private API key from Wavenami.com), #2 (Add your API key to the Wavenami API Settings.), #3 (Access your event form shortcodes on the Shortcode tab.), #4 (Insert your shortcode into a blank Page (not a Post) and select the Wavenami template for display.), #5 (Your vendor registration form will be displayed on your page.), #6 (Forms are mobile friendly for tablets and smartphones.), #7 (Document uploads are handled automatically based on vendor type.), #8 (Applicants can select the venue location or booth they want.), #9 (Vendor amenities are selectable, including venue setup location.), #10 (Event terms are displayed for them to sign off on.), #11 (e-Signatures can be made from desktops, tables or phones.), #12 (Payments can be made based on your payment preferences.)
You can look at the official readme.txt

wavenami-forms-and-mapping/wavenami-wordpress-client.php 85% from 13 tests

The main file in "Wavenami Ticketing, Symposiums, Application Forms & Mapping" v. 1.0.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wavenami-forms-and-mapping.php" instead of "wavenami-wordpress-client.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "5.4")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected80,898 lines of code in 313 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1857,3795,47339,839
CSS662,07478425,722
PHP192,4191,8009,078
JSON2002,481
Sass4147701,997
SVG340291,395
Markdown21070359
Mustache15027

PHP code 0% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,381)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 153)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity149.60
▷ Minimum class complexity1.00
▷ Maximum class complexity1,381.00
Average method complexity10.17
▷ Minimum method complexity1.00
▷ Maximum method complexity153.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods164
▷ Static methods53.05%
▷ Public methods5734.76%
▷ Protected methods00.00%
▷ Private methods10765.24%
Functions34
▷ Named functions3191.18%
▷ Anonymous functions38.82%
Constants6
▷ Global constants6100.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
32 compressed PNG files occupy 0.50MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
front-end/assets/img/authorizenet_secure90x72.png2.83KB2.10KB▼ 25.85%
front-end/assets/img/stripe1.png9.26KB9.53KB0.00%
front-end/assets/img/icons/amex.png1.92KB1.64KB▼ 14.70%
front-end/assets/img/icons/visa.png1.66KB1.57KB▼ 5.70%
front-end/assets/chosen/chosen-sprite.png0.53KB0.88KB0.00%