84% wp-event-manager-migration

Code Review | WP Event Manager Migration

WordPress plugin WP Event Manager Migration scored84%from 54 tests.

About plugin

  • Plugin page: wp-event-manager-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: Aug 24, 2023
  • Number of updates: 11
  • Update frequency: every 104.4 days
  • Top authors: wpeventmanager (72.73%)kikanirita (27.27%)hiteshmakvana (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.40ms] Passed 4 tests

A check of server-side resources used by WP Event Manager Migration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.56 ▼3.34
Dashboard /wp-admin3.32 ▲0.0245.52 ▼7.60
Posts /wp-admin/edit.php3.43 ▲0.0841.90 ▼3.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0478.37 ▼6.97
Media Library /wp-admin/upload.php3.24 ▲0.0235.77 ▼0.77

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WP Event Manager Migration: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.35 ▲0.001.92 ▲0.1844.66 ▼4.39
Dashboard /wp-admin2,205 ▲285.65 ▲0.0297.91 ▼1.3644.47 ▼2.24
Posts /wp-admin/edit.php2,119 ▲162.02 ▼0.0035.84 ▼1.3732.47 ▼2.20
Add New Post /wp-admin/post-new.php1,544 ▲1823.14 ▼0.44673.72 ▲34.5954.37 ▲4.78
Media Library /wp-admin/upload.php1,416 ▲224.19 ▼0.0599.89 ▼4.7143.39 ▼1.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-event-manager-migration/templates/admin/event-migration-success.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-event-manager-migration/templates/admin/event-migration-import.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-event-manager-migration/templates/admin/event-migration-mapping-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-event-manager-migration/templates/admin/event-migration-file-upload.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

wp-event-manager-migration/wp-event-manager-migration.php 92% from 13 tests

"WP Event Manager Migration" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,996 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP114677633,153
PO File3342248595
JavaScript22640114
Pascal1418580
CSS24052
Markdown1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity102.33
▷ Minimum class complexity3.00
▷ Maximum class complexity173.00
Average method complexity6.15
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods118
▷ Static methods119.32%
▷ Public methods9983.90%
▷ Protected methods97.63%
▷ Private methods108.47%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants42
▷ Global constants42100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin