74% hiorgserver-terminliste

Code Review | HiOrg-Server Termine

WordPress plugin HiOrg-Server Termine scored74%from 54 tests.

About plugin

  • Plugin page: hiorgserver-termi...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.3
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: Jan 17, 2019
  • Number of updates: 39
  • Update frequency: every 34.5 days
  • Top authors: babsitz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,787 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼1.91MB] [CPU: ▼55.57ms] Passed 4 tests

An overview of server-side resources used by HiOrg-Server Termine
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.30 ▼36.87
Dashboard /wp-admin2.11 ▼1.205.63 ▼47.06
Posts /wp-admin/edit.php2.11 ▼1.256.05 ▼37.14
Add New Post /wp-admin/post-new.php2.11 ▼3.798.80 ▼101.20
Media Library /wp-admin/upload.php2.11 ▼1.135.40 ▼31.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for HiOrg-Server Termine
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.51 ▼0.804.91 ▲3.0043.16 ▼5.00
Dashboard /wp-admin2,209 ▲214.88 ▼0.0198.61 ▼12.5240.59 ▼7.14
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0439.80 ▼0.0135.17 ▼1.54
Add New Post /wp-admin/post-new.php1,542 ▲2818.26 ▲0.57621.17 ▼33.9856.10 ▲1.60
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0098.31 ▼9.2545.68 ▼0.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiorgserver-terminliste/hiorgserver-termine.php:12

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: drk, hiorg server, hiorg-server, terminliste, hiorg

hiorgserver-terminliste/hiorgserver-termine.php 92% from 13 tests

Analyzing the main PHP file in "HiOrg-Server Termine" version 1.2.5
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hiorgserver-terminliste.php" instead of "hiorgserver-termine.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin120 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12414116
Markdown1204

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin