78% wpconcierges-hyperfair-registration

Code Review | WPConcierges HyperFair Registration

WordPress plugin WPConcierges HyperFair Registration scored78%from 54 tests.

About plugin

  • Plugin page: wpconcierges-hype...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2020
  • Latest release: Nov 20, 2020
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: wpconcierges (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /270 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
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼4.26ms] Passed 4 tests

Analyzing server-side resources used by WPConcierges HyperFair Registration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.10 ▼0.14
Dashboard /wp-admin3.45 ▲0.1543.81 ▼3.12
Posts /wp-admin/edit.php3.56 ▲0.2145.40 ▼3.32
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.99 ▼10.44
Media Library /wp-admin/upload.php3.37 ▲0.1438.81 ▲2.78
WPConcierges HyperFair Registration /wp-admin/tools.php?page=wpc-hyperfair-registration3.3531.48

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WPConcierges HyperFair Registration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.291.73 ▲0.0140.77 ▼0.79
Dashboard /wp-admin2,196 ▲195.58 ▼0.1090.70 ▲5.1737.35 ▼6.10
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0339.38 ▲4.3035.25 ▲0.04
Add New Post /wp-admin/post-new.php1,530 ▼722.95 ▲4.88664.62 ▲55.0152.54 ▼12.87
Media Library /wp-admin/upload.php1,401 ▲44.27 ▲0.0995.11 ▼3.9246.98 ▲3.10
WPConcierges HyperFair Registration /wp-admin/tools.php?page=wpc-hyperfair-registration8701.9925.6625.75

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wpconcierges-hyperfair-registration/public/partials/wpc-hyperfair-registration-public-display.php
    • > /wp-content/plugins/wpconcierges-hyperfair-registration/admin/partials/wpc-hyperfair-registration-admin-display.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpconcierges-hyperfair-registration/admin/partials/wpc-hyperfair-registration-admin-field-textarea.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpconcierges-hyperfair-registration/admin/partials/wpc-hyperfair-registration-admin-field-text.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wpconcierges-hyperfair-registration/admin/partials/wpc-hyperfair-registration-admin-section-messages.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpconcierges-hyperfair-registration/admin/partials/wpc-hyperfair-registration-admin-page-settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpconcierges-hyperfair-registration/admin/partials/wpc-hyperfair-registration-admin-field-select.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: hyperfair, virtual event, hyper fair registration, hyper fair, woocommerce...

wpconcierges-hyperfair-registration/wpc-hyperfair-registration.php 77% from 13 tests

The entry point to "WPConcierges HyperFair Registration" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "3.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("wpconcierges-hyperfair-registration.php" instead of "wpc-hyperfair-registration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected723 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP18347682723

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.38
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods54
▷ Static methods23.70%
▷ Public methods3666.67%
▷ Protected methods00.00%
▷ Private methods1833.33%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin