52% wp24-termine

Code Review | WP24 EVENTS

WordPress plugin WP24 EVENTS scored 52% from 54 tests.

About plugin

  • Plugin page: wp24-termine
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.1-5.6
  • WordPress version: 5.9.2
  • First release: Oct 20, 2020
  • Latest release: Dec 12, 2020
  • Number of updates: 35
  • Update frequency: every 1.5 days
  • Top authors: jwiecker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 254 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼2.26MB] [CPU: ▼347.58ms] Passed 4 tests

Server-side resources used by WP24 EVENTS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.405.11 ▼43.00
Dashboard /wp-admin2.14 ▼1.274.18 ▼29.50
Posts /wp-admin/edit.php2.14 ▼1.505.18 ▼32.38
Add New Post /wp-admin/post-new.php2.14 ▼4.864.77 ▼1,285.43
Media Library /wp-admin/upload.php2.14 ▼1.165.09 ▼20.31
AP24 plans /wp-admin/admin.php?page=art-Picture-termine2.144.32
AP24 Events /wp-admin/admin.php?page=wp-artPictures2.145.29

Server storage [IO: ▲4.43MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 110 new files
Database: 5 new tables, 1 new option
New tables
wp_apd_settings
wp_apd_category
wp_apd_group
wp_apd_weekdays
wp_apd_termin
New WordPress options
jal_db_version

Browser metrics Passed 4 tests

An overview of browser requirements for WP24 EVENTS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,274 ▲52016.99 ▲0.909.62 ▲4.124.77 ▲2.49
Dashboard /wp-admin3,227 ▲3667.07 ▲0.90123.04 ▼10.56188.77 ▲28.22
Posts /wp-admin/edit.php2,994 ▲3003.39 ▲0.1672.38 ▲6.92155.00 ▲10.48
Add New Post /wp-admin/post-new.php2,027 ▲31620.90 ▲0.23449.30 ▼13.15192.85 ▲35.19
Media Library /wp-admin/upload.php2,032 ▲3315.99 ▲0.52133.00 ▼8.75218.24 ▲35.31
AP24 plans /wp-admin/admin.php?page=art-Picture-termine2,0853.3677.12182.45
AP24 Events /wp-admin/admin.php?page=wp-artPictures4,6014.10101.64130.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wp24-termine/lib/register_apd_plugin.php+243
    Undefined variable: php
  • The uninstall procedure failed, leaving 5 tables in the database
    • wp_apd_category
    • wp_apd_termin
    • wp_apd_weekdays
    • wp_apd_group
    • wp_apd_settings
  • The uninstall procedure has failed, leaving 1 option in the database
    • jal_db_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-artPictures
    • > Notice in wp-content/plugins/wp24-termine/lib/register_apd_plugin.php+243
    Undefined variable: php
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+31
    Trying to get property 'sett_id' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+100
    Trying to get property 'lang_id' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+358
    Trying to get property 'day_montag' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+358
    Trying to get property 'day_dienstag' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+358
    Trying to get property 'day_mittwoch' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+358
    Trying to get property 'day_donnerstag' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+358
    Trying to get property 'day_freitag' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+358
    Trying to get property 'day_samstag' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/php/plugin_db.php+358
    Trying to get property 'day_sonntag' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/pages/termine-events.php+229
    Trying to get property 'drop_aktiv' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/pages/termine-events.php+239
    Trying to get property 'name' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/pages/termine-events.php+249
    Trying to get property 'id' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/pages/termine-events.php+273
    Trying to get property 'drop_bezeichnung' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/pages/termine-events.php+289
    Trying to get property 'drop_bg' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/pages/termine-events.php+297
    Trying to get property 'drop_txt' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/pages/termine-events.php+309
    Trying to get property 'drop_hover_bg' of non-object
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Notice in wp-content/plugins/wp24-termine/lib/pages/termine-events.php+317
    Trying to get property 'drop_txt_size' of non-object

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp24-termine/wp24-termine.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=art-Picture-termine
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

wp24-termine/wp24-termine.php 92% from 13 tests

The main file in "WP24 EVENTS" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

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
There were no executable files found in this plugin11,760 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP183673115,005
SVG2002,672
CSS8344601,905
JavaScript71081681,437
PO File2354452741

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity25.20
▷ Minimum class complexity7.00
▷ Maximum class complexity76.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods103
▷ Static methods00.00%
▷ Public methods8885.44%
▷ Protected methods00.00%
▷ Private methods1514.56%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
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
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/images/logo.png1.24KB0.47KB▼ 62.29%
assets/css/images/sort_both.png0.20KB0.29KB0.00%
assets/css/images/sort_desc.png0.15KB0.25KB0.00%
assets/css/images/sort_asc.png0.16KB0.25KB0.00%