94% huurkalender-wp

Code Review | Huurkalender WP

WordPress plugin Huurkalender WP scored 94% from 54 tests.

About plugin

  • Plugin page: huurkalender-wp
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 5.9.2
  • First release: Feb 17, 2018
  • Latest release: Mar 23, 2022
  • Number of updates: 32
  • Update frequency: every 46.7 days
  • Top authors: huurkalender (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active / 4,393 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼292.35ms] Passed 4 tests

Server-side resources used by Huurkalender WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0560.83 ▲9.37
Dashboard /wp-admin3.46 ▲0.0433.57 ▼0.25
Posts /wp-admin/edit.php3.69 ▲0.0434.90 ▼1.25
Add New Post /wp-admin/post-new.php6.93 ▼0.04105.78 ▼1,161.43
Media Library /wp-admin/upload.php3.34 ▲0.0324.52 ▼6.46
Huurkalender plugin /wp-admin/options-general.php?page=huurkalender-wp3.3226.12

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Huurkalender WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲4715.90 ▲0.246.09 ▲0.272.17 ▼0.08
Dashboard /wp-admin2,897 ▲366.05 ▼0.09116.41 ▼12.75151.77 ▼7.41
Posts /wp-admin/edit.php2,696 ▲23.36 ▼0.0165.34 ▼1.38136.16 ▼5.96
Add New Post /wp-admin/post-new.php1,664 ▼10916.40 ▼5.52409.76 ▼45.78152.18 ▼2.31
Media Library /wp-admin/upload.php1,700 ▲25.53 ▼0.01144.96 ▲2.29191.51 ▼2.61
Huurkalender plugin /wp-admin/options-general.php?page=huurkalender-wp1,3202.49193.68152.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/huurkalender-wp/huurkalender-wp.php:370

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: boekingskalender, boekingssysteem, verhuurkalender, huurkalender, beschikbaarheidskalender...

huurkalender-wp/huurkalender-wp.php 85% from 13 tests

The entry point to "Huurkalender WP" version 1.5.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin274 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14561274

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected