10% event-organiser-ngo

Code Review | Event Organiser NGO

WordPress plugin Event Organiser NGO scored10%from 54 tests.

About plugin

  • Plugin page: event-organiser-ngo
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Sep 7, 2016
  • Latest release: Dec 12, 2016
  • Number of updates: 13
  • Update frequency: every 7.6 days
  • Top authors: joje47 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,121 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-content/plugins/event-organiser-ngo/event-organiser-ngo.php+63
    Uncaught Error: Call to undefined function wp_get_sites() in wp-content/plugins/event-organiser-ngo/event-organiser-ngo.php:63
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): eongo_set_auth()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.54ms] Passed 4 tests

A check of server-side resources used by Event Organiser NGO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.19 ▼2.23
Dashboard /wp-admin3.30 ▲0.0055.54 ▲9.61
Posts /wp-admin/edit.php3.36 ▲0.0043.95 ▼5.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.78 ▼6.09
Media Library /wp-admin/upload.php3.23 ▲0.0033.53 ▲3.43

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Event Organiser NGO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.141.70 ▼0.3544.46 ▼2.72
Dashboard /wp-admin2,206 ▲155.79 ▲0.90100.91 ▼7.2939.36 ▼2.64
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0536.83 ▼4.2534.34 ▲0.32
Add New Post /wp-admin/post-new.php1,517 ▼1917.85 ▼5.35607.29 ▼72.3260.02 ▲4.33
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.02101.92 ▼7.5042.06 ▼0.00

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/event-organiser-ngo/includes/event-organiser-portal.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/event-organiser-ngo/includes/event-organiser-portal_cal.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/event-organiser-ngo/includes/event-organiser-sites.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (After installing the plugin you will get two extra tickboxes at the member sites. The top one is to show the member sites event in the portal calendar.)
  • Screenshots: A description for screenshot #0 is missing in event-organiser-ngo/assets to your readme.txt
The official readme.txt might help

event-organiser-ngo/event-organiser-ngo.php 92% from 13 tests

The primary PHP file in "Event Organiser NGO" version 1.2.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 224 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected941 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4144121748
PO File13657102
CSS1252491

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity21.67
▷ Minimum class complexity10.00
▷ Maximum class complexity29.00
Average method complexity6.17
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.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