10% promissa

Code Review | Pro Missa

WordPress plugin Pro Missa scored10%from 54 tests.

About plugin

  • Plugin page: promissa
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.1-6.1.0
  • WordPress version: 6.3.1
  • First release: Aug 8, 2019
  • Latest release: Jul 7, 2022
  • Number of updates: 53
  • Update frequency: every 25.9 days
  • Top authors: kerkenit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,584 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/promissa/shortcodes/corona.php+2
    date_default_timezone_set(): Timezone ID '' is invalid

Server metrics [RAM: ▼1.87MB] [CPU: ▼57.18ms] Passed 4 tests

Server-side resources used by Pro Missa
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.3410.95 ▼30.64
Dashboard /wp-admin2.15 ▼1.207.94 ▼54.49
Posts /wp-admin/edit.php2.15 ▼1.218.75 ▼41.12
Add New Post /wp-admin/post-new.php2.15 ▼3.747.81 ▼102.46
Media Library /wp-admin/upload.php2.15 ▼1.087.19 ▼29.23
Pro Missa /wp-admin/options-general.php?page=promissa2.157.69

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_promissa_widget_upcoming_masses
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Pro Missa
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.38 ▼0.252.36 ▲0.7042.95 ▲1.92
Dashboard /wp-admin2,210 ▲365.65 ▼0.0389.65 ▼1.0642.55 ▼2.51
Posts /wp-admin/edit.php2,115 ▲152.00 ▼0.0236.43 ▼1.8832.63 ▼2.55
Add New Post /wp-admin/post-new.php1,540 ▲1222.95 ▼0.10683.17 ▲18.3865.17 ▲12.53
Media Library /wp-admin/upload.php1,412 ▲124.23 ▲0.07113.90 ▲9.9946.41 ▲3.11
Pro Missa /wp-admin/options-general.php?page=promissa8982.0530.5530.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/promissa/shortcodes/corona.php+2
    date_default_timezone_set(): Timezone ID '' is invalid
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_promissa_widget_upcoming_masses
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=promissa
    • > Notice in wp-content/plugins/promissa/shortcodes/corona.php+2
    date_default_timezone_set(): Timezone ID '' is invalid
    • > GET request to /wp-admin/options-general.php?page=promissa
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'add_ob_start' not found or invalid function name
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=promissa
    • > Notice in wp-content/plugins/promissa/admin/settings.php+80
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/promissa/shortcodes/calendar.php:274
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/promissa/shortcodes/corona.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/promissa/promissa.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/promissa/widgets/upcoming_mass.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/promissa/shortcodes/upcoming_mass.php:148
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/promissa/widgets/corona.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/promissa/shortcodes/form.php:238
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/promissa/shortcodes/intentions.php:229
    • > PHP Fatal error
      Uncaught Error: Class 'IntlDateFormatter' not found in wp-content/plugins/promissa/shortcodes/intentions_from.php:2

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: vieringen, kerk, ledenadministratie, mistijden, kerkgebouwen...

promissa/promissa.php Passed 13 tests

The primary PHP file in "Pro Missa" version 1.4.1 is used by WordPress to initiate all plugin functionality
96 characters long description:
This plugin will give you shortcodes and widgets with the latest masses and events of Pro Missa.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,689 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP112682802,488
PO File1174317199
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity37.00
▷ Minimum class complexity35.00
▷ Maximum class complexity38.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods1463.64%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
Functions59
▷ Named functions5796.61%
▷ Anonymous functions23.39%
Constants8
▷ Global constants8100.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
PNG images were not found in this plugin