74% lgv-anmeldesystem

Code Review | lgv-anmeldesystem

WordPress plugin lgv-anmeldesystem scored74%from 54 tests.

About plugin

  • Plugin page: lgv-anmeldesystem
  • Plugin version: 1.21
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 7, 2018
  • Latest release: Nov 3, 2023
  • Number of updates: 29
  • Update frequency: every 67.2 days
  • Top authors: jkalmbach (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,693 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.76MB] [CPU: ▼0.29ms] Passed 4 tests

Analyzing server-side resources used by lgv-anmeldesystem
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7639.94 ▲3.04
Dashboard /wp-admin4.07 ▲0.7748.40 ▼7.07
Posts /wp-admin/edit.php4.12 ▲0.7655.02 ▼3.50
Add New Post /wp-admin/post-new.php6.65 ▲0.7794.17 ▲11.59
Media Library /wp-admin/upload.php3.99 ▲0.7638.77 ▲6.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: 3 new tables, 7 new options
New tables
wp_lgvas_registration
wp_lgvas_event
wp_lgvas_eventgroup
New WordPress options
db_upgraded
lgvas_db_version
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for lgv-anmeldesystem
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲4014.35 ▲0.011.95 ▲0.1437.90 ▼5.74
Dashboard /wp-admin2,208 ▲315.60 ▲0.0291.62 ▼10.7440.35 ▼3.23
Posts /wp-admin/edit.php2,116 ▲131.95 ▼0.0338.76 ▼4.9336.19 ▼3.03
Add New Post /wp-admin/post-new.php1,539 ▲1023.58 ▲0.34688.90 ▲85.3748.01 ▼6.36
Media Library /wp-admin/upload.php1,416 ▲194.19 ▼0.03103.60 ▼29.8640.49 ▼12.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_lgvas_event
    • wp_lgvas_eventgroup
    • wp_lgvas_registration
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • lgvas_db_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant LGV_AS_PATH - assumed 'LGV_AS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-bo-payment.php on line 9
    • > PHP Warning
      require_once(LGV_AS_PATHincludes/class-lgv-as-bo-payment.php): failed to open stream: No such file or directory in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-bo.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'LGV_AS_BO_EventGroup' not found in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db-eventgroup.php:9
    • > PHP Warning
      Use of undefined constant LGV_AS_PATH - assumed 'LGV_AS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-bo.php on line 9
    • > PHP Warning
      require_once(LGV_AS_PATHincludes/class-lgv-as-db-event.php): failed to open stream: No such file or directory in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db.php on line 107
    • > PHP Fatal error
      Uncaught Error: Class 'LGV_AS_BO_Registration' not found in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db-registration.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'LGV_AS_PATHincludes/class-lgv-as-bo-payment.php' (include_path='.:/usr/share/php') in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-bo.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'LGV_AS_BO_Event' not found in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db-event.php:22
    • > PHP Warning
      Use of undefined constant LGV_AS_PATH - assumed 'LGV_AS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db.php on line 107
    • > PHP Fatal error
      require_once(): Failed opening required 'LGV_AS_PATHincludes/class-lgv-as-db-event.php' (include_path='.:/usr/share/php') in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db.php on line 107

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Example af an registration formular), #2 (Example of the backend)
You can take inspiration from this readme.txt

lgv-anmeldesystem/lgv-anmeldesystem.php Passed 13 tests

"lgv-anmeldesystem" version 1.21's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
Helps to register for free events

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected4,264 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP156846074,197
JavaScript110763
CSS1104

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 141)
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity34.48
▷ Minimum class complexity1.00
▷ Maximum class complexity164.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity141.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes14.76%
▷ Concrete classes2095.24%
▷ Final classes00.00%
Methods199
▷ Static methods7336.68%
▷ Public methods17889.45%
▷ Protected methods84.02%
▷ Private methods136.53%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants211.11%
▷ Class constants1688.89%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Screenshot-2.png66.81KB22.77KB▼ 65.92%
assets/Screenshot-1.png31.80KB12.38KB▼ 61.08%