84% sowprog-import-the-events-calendar

Code Review | SOWPROG import The events calendar

WordPress plugin SOWPROG import The events calendar scored 84% from 54 tests.

About plugin

  • Plugin page: sowprog-import-th...
  • Plugin version: 0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2013
  • Latest release: Dec 12, 2022
  • Number of updates: 21
  • Update frequency: every 156.8 days
  • Top authors: A31V (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼9.56ms] Passed 4 tests

This is a short check of server-side resources used by SOWPROG import The events calendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1033.63 ▼7.16
Dashboard /wp-admin3.41 ▲0.1047.61 ▲0.09
Posts /wp-admin/edit.php3.46 ▲0.1041.46 ▼8.42
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.98 ▼15.91
Media Library /wp-admin/upload.php3.33 ▲0.1034.53 ▼6.75
SOWPROG (TEC) /wp-admin/tools.php?page=sowprog-import-the-events-calendar/sowprog_import_tribeeventscalendar.php3.3032.57

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SOWPROG import The events calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.33 ▼1.054.22 ▲2.2238.28 ▼4.79
Dashboard /wp-admin2,213 ▲284.83 ▼0.06101.98 ▼30.1840.78 ▼4.92
Posts /wp-admin/edit.php2,096 ▲42.06 ▲0.0638.91 ▼2.8732.53 ▲0.68
Add New Post /wp-admin/post-new.php1,536 ▲923.28 ▲5.09747.35 ▲46.0262.98 ▼2.37
Media Library /wp-admin/upload.php1,395 ▲74.18 ▲0.0199.95 ▼12.2942.35 ▼15.28
SOWPROG (TEC) /wp-admin/tools.php?page=sowprog-import-the-events-calendar/sowprog_import_tribeeventscalendar.php9122.0626.9328.13

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 1× 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/sowprog-import-the-events-calendar/sowprog_import_tribeeventscalendar.php:762

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === sowprog-import-the-events-calendar === )
You can take inspiration from this readme.txt

sowprog-import-the-events-calendar/sowprog_import_tribeeventscalendar.php 92% from 13 tests

The main PHP script in "SOWPROG import The events calendar" version 0.11 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sowprog-import-the-events-calendar.php" instead of "sowprog_import_tribeeventscalendar.php")

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 plugin612 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111343612

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity120.00
▷ Minimum class complexity120.00
▷ Maximum class complexity120.00
Average method complexity8.93
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin