84% export-em-events-to-csv

Code Review | Export events to CSV (Addon for Events Manager)

WordPress plugin Export events to CSV (Addon for Events Manager) scored84%from 54 tests.

About plugin

  • Plugin page: export-em-events-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 17, 2016
  • Latest release: Jan 31, 2023
  • Number of updates: 28
  • Update frequency: every 84.2 days
  • Top authors: s-hinse (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Export events to CSV (Addon for Events Manager)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.02 ▲1.74
Dashboard /wp-admin3.31 ▼0.0444.16 ▼16.95
Posts /wp-admin/edit.php3.36 ▲0.0044.34 ▼2.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.48 ▼11.94
Media Library /wp-admin/upload.php3.23 ▲0.0035.48 ▲3.79

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Export events to CSV (Addon for Events Manager): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.05 ▼0.301.62 ▼0.0644.63 ▼0.22
Dashboard /wp-admin2,195 ▲155.61 ▼0.0190.37 ▼1.5540.78 ▼3.48
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0439.06 ▲3.4635.29 ▼1.62
Add New Post /wp-admin/post-new.php1,526 ▼223.16 ▲0.07659.63 ▼46.5751.72 ▼1.69
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.05102.82 ▼4.6242.10 ▼4.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/export-em-events-to-csv/export-em-events-to-csv.php
    • > /wp-content/plugins/export-em-events-to-csv/trunk/export-em-events-to-csv.php

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === export-em-events-to-csv === )
The official readme.txt is a good inspiration

export-em-events-to-csv/export-em-events-to-csv.php Passed 13 tests

The entry point to "Export events to CSV (Addon for Events Manager)" version 1.3 is a PHP file that has certain tags in its header comment area
55 characters long description:
Exports all Events and their locations into a CSV file.

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 plugin343 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7119213257
PO File1161666
Markdown111020

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.75
▷ Minimum class complexity2.00
▷ Maximum class complexity13.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods2252.38%
▷ Protected methods614.29%
▷ Private methods1433.33%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants0
▷ Global constants00.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
No PNG files were detected