84% sowprog-import-events-manager-pro

Code Review | SOWPROG import Events Manager Pro

WordPress plugin SOWPROG import Events Manager Pro scored84%from 54 tests.

About plugin

  • Plugin page: sowprog-import-ev...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2013
  • Latest release: Dec 11, 2017
  • Number of updates: 20
  • Update frequency: every 73.4 days
  • Top authors: A31V (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by SOWPROG import Events Manager Pro
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.51 ▼4.43
Dashboard /wp-admin3.41 ▲0.1052.33 ▼2.78
Posts /wp-admin/edit.php3.46 ▲0.1047.86 ▼6.81
Add New Post /wp-admin/post-new.php5.99 ▲0.10100.46 ▼20.02
Media Library /wp-admin/upload.php3.33 ▲0.1038.96 ▲1.56
SOWPROG (TEM) /wp-admin/tools.php?page=sowprog-import-events-manager-pro/sowprog_import_eventsmanagerpro.php3.3032.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for SOWPROG import Events Manager Pro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.24 ▲0.311.58 ▼0.4142.43 ▲2.27
Dashboard /wp-admin2,199 ▲225.56 ▼0.17107.40 ▲14.1243.43 ▲0.72
Posts /wp-admin/edit.php2,104 ▲12.01 ▲0.0437.09 ▲0.4430.21 ▼5.52
Add New Post /wp-admin/post-new.php1,529 ▲123.65 ▲0.55686.63 ▲47.0050.72 ▼9.37
Media Library /wp-admin/upload.php1,401 ▲14.23 ▲0.0299.47 ▼11.0741.98 ▼8.02
SOWPROG (TEM) /wp-admin/tools.php?page=sowprog-import-events-manager-pro/sowprog_import_eventsmanagerpro.php9132.0029.2124.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× 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/sowprog-import-events-manager-pro/sowprog_import_eventsmanagerpro.php:775

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === sowprog-import-events-manager-pro === )
You can take inspiration from this readme.txt

sowprog-import-events-manager-pro/sowprog_import_eventsmanagerpro.php 92% from 13 tests

The entry point to "SOWPROG import Events Manager Pro" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sowprog-import-events-manager-pro.php" instead of "sowprog_import_eventsmanagerpro.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin606 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112056606

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
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 complexity109.00
▷ Minimum class complexity109.00
▷ Maximum class complexity109.00
Average method complexity9.31
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin