83% kerk-en-it-parish

Code Review | Kerk en IT Parish

WordPress plugin Kerk en IT Parish scored83%from 54 tests.

About plugin

  • Plugin page: kerk-en-it-parish
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2015
  • Latest release: Mar 12, 2015
  • Number of updates: 20
  • Update frequency: every 11.8 days
  • Top authors: kerkenit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /695 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▼1.97ms] Passed 4 tests

A check of server-side resources used by Kerk en IT Parish
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2536.67 ▼4.15
Dashboard /wp-admin3.56 ▲0.2246.25 ▼12.59
Posts /wp-admin/edit.php3.68 ▲0.3251.27 ▲4.06
Add New Post /wp-admin/post-new.php6.16 ▲0.2899.51 ▲5.17
Media Library /wp-admin/upload.php3.48 ▲0.2638.77 ▲4.81
Churches /wp-admin/admin.php?page=kerkenit-churches3.4431.93
Masses /wp-admin/admin.php?page=kerkenit-masses3.4544.39
Parish /wp-admin/admin.php?page=kerkenit3.4431.86
Mass types /wp-admin/admin.php?page=kerkenit-massTypes3.4431.02

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: 4 new tables, 7 new options
New tables
wp_kei_diocese
wp_kei_masses
wp_kei_church
wp_kei_massesType
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_kei_widget_masses
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Kerk en IT Parish
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.29 ▼1.021.71 ▲0.1040.04 ▲2.72
Dashboard /wp-admin2,243 ▲515.89 ▲0.96103.85 ▼1.9481.66 ▲39.14
Posts /wp-admin/edit.php2,127 ▲382.03 ▼0.0138.56 ▲4.2433.13 ▼1.25
Add New Post /wp-admin/post-new.php1,697 ▲17822.47 ▼0.75724.36 ▲46.6059.40 ▲5.03
Media Library /wp-admin/upload.php1,419 ▲314.24 ▼0.01101.21 ▼3.7871.81 ▲24.82
Churches /wp-admin/admin.php?page=kerkenit-churches1,0151.7425.1030.47
Masses /wp-admin/admin.php?page=kerkenit-masses9941.7228.2928.95
Parish /wp-admin/admin.php?page=kerkenit1,0122.0425.1030.60
Mass types /wp-admin/admin.php?page=kerkenit-massTypes9911.8326.3027.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_kei_widget_masses
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/kerk-en-it-parish/admin/masses.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/kerk-en-it-parish/admin/masses.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/kerk-en-it-parish/admin/churches.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/kerk-en-it-parish/admin/massTypes.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/kerk-en-it-parish/admin/churches.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kerk-en-it-parish/admin/churches.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/kerk-en-it-parish/admin/massTypes.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kerk-en-it-parish/functions.php:72
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kerk-en-it-parish/admin/masses.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kerk-en-it-parish/kei-parish.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

kerk-en-it-parish/kei-parish.php 69% from 13 tests

The main file in "Kerk en IT Parish" v. 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:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kerk-en-it-parish.php" instead of "kei-parish.php")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

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
Good job! No executable or dangerous file extensions detected1,534 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP62512701,199
PO File1101114209
CSS19066
JavaScript11460

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity14.20
▷ Minimum class complexity8.00
▷ Maximum class complexity20.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods43
▷ Static methods49.30%
▷ Public methods4195.35%
▷ Protected methods00.00%
▷ Private methods24.65%
Functions17
▷ Named functions17100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_bak.png0.50KB0.32KB▼ 35.90%
images/icon.png0.38KB0.27KB▼ 28.79%