84% orgabird-kalender

Code Review | Orgabird Kalender

WordPress plugin Orgabird Kalender scored84%from 54 tests.

About plugin

  • Plugin page: orgabird-kalender
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.3
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Feb 6, 2018
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: dsiekiera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,044 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.22ms] Passed 4 tests

This is a short check of server-side resources used by Orgabird Kalender
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.88 ▼2.65
Dashboard /wp-admin3.33 ▼0.0248.26 ▼19.63
Posts /wp-admin/edit.php3.38 ▲0.0250.61 ▲5.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.45 ▼8.37
Media Library /wp-admin/upload.php3.25 ▲0.0234.58 ▼2.22

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_orgabird_calendar
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Orgabird Kalender: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.011.77 ▲0.0742.61 ▼2.35
Dashboard /wp-admin2,195 ▲185.61 ▼0.0490.26 ▼4.2338.47 ▲2.40
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0039.08 ▼2.4035.70 ▼2.13
Add New Post /wp-admin/post-new.php1,526 ▼922.95 ▲4.68638.49 ▲15.3852.75 ▼16.87
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.00100.14 ▼8.3541.96 ▼2.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_orgabird_calendar
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/orgabird-kalender/orgabird-calendar.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ferien, kalender, feiertagen

orgabird-kalender/orgabird-calendar.php 85% from 13 tests

The primary PHP file in "Orgabird Kalender" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("orgabird-kalender.php" instead of "orgabird-calendar.php")
  • Description: The description should be shorter than 140 characters (currently 421 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1362171

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png52.45KB18.10KB▼ 65.50%
screenshot-1.png40.47KB10.66KB▼ 73.67%
screenshot-3.png39.23KB10.84KB▼ 72.36%