67% event-organiser-csv

Code Review | Event Organiser CSV

WordPress plugin Event Organiser CSV scored 67% from 54 tests.

About plugin

  • Plugin page: event-organiser-csv
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2014
  • Latest release: May 25, 2015
  • Number of updates: 14
  • Update frequency: every 36.6 days
  • Top authors: stephenharris (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active / 10,773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Event Organiser CSV
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.98 ▼1.47
Dashboard /wp-admin3.32 ▲0.0147.21 ▼2.91
Posts /wp-admin/edit.php3.37 ▲0.0146.07 ▲2.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.20 ▼9.10
Media Library /wp-admin/upload.php3.24 ▲0.0136.67 ▲2.97
Import / Export Events /wp-admin/tools.php?page=eo-csv-import3.1827.64

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

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

Browser metrics Passed 4 tests

Event Organiser CSV: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.27 ▼1.324.90 ▲2.9943.86 ▼4.63
Dashboard /wp-admin2,210 ▲224.84 ▼0.0695.15 ▼4.0238.51 ▼7.87
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0334.76 ▲0.2334.17 ▲3.78
Add New Post /wp-admin/post-new.php1,547 ▲518.63 ▲0.58607.13 ▲5.7359.51 ▲10.51
Media Library /wp-admin/upload.php1,392 ▲14.20 ▼0.01106.61 ▲0.5645.81 ▲1.55
Import / Export Events /wp-admin/tools.php?page=eo-csv-import8001.7225.8631.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=eo-csv-import
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=eo-csv-import
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/event-organiser-csv/includes/class-eo-csv-events-export.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/event-organiser-csv/event-organiser-csv.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'EO_CSV_Parser' not found in wp-content/plugins/event-organiser-csv/includes/class-eo-event-csv-parser.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/tools.php?page=eo-csv-import
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: eo_csv_data is not defined" "ReferenceError: eo_csv_data is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/event-organiser-csv/assets/js/event_organiser_csv.min.js?ver=0.3.2:2:2629)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/tools.php?page=eo-csv-import
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: eo_csv_data is not defined

Optimizations

Plugin configuration Passed 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
3 plugin tags: event, import, csv

event-organiser-csv/event-organiser-csv.php Passed 13 tests

The main PHP script in "Event Organiser CSV" version 0.3.2 is automatically included on every request by WordPress
32 characters long description:
Import and Export events via CSV

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,598 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6290245712
JavaScript3121242675
Markdown1440112
CSS2211299

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity21.17
▷ Minimum class complexity4.00
▷ Maximum class complexity45.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods57
▷ Static methods11.75%
▷ Public methods5494.74%
▷ Protected methods35.26%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin