84% sowprog-events

Code Review | SOWPROG Events

WordPress plugin SOWPROG Events scored84%from 54 tests.

About plugin

  • Plugin page: sowprog-events
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.4
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: May 24, 2020
  • Number of updates: 29
  • Update frequency: every 66.5 days
  • Top authors: A31V (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /874 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.07MB] [CPU: ▼13.96ms] Passed 4 tests

An overview of server-side resources used by SOWPROG Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▼0.6215.82 ▼25.15
Dashboard /wp-admin3.42 ▲0.1245.61 ▼9.62
Posts /wp-admin/edit.php3.53 ▲0.1844.60 ▼0.17
Add New Post /wp-admin/post-new.php6.00 ▲0.1283.97 ▼20.91
Media Library /wp-admin/upload.php3.34 ▲0.1135.09 ▲2.85
SOWPROG /wp-admin/tools.php?page=sowprog-events/sowprog_events_configuration.php3.3132.02

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

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

Browser metrics Passed 4 tests

Checking browser requirements for SOWPROG Events
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.31 ▼0.924.23 ▲2.2843.60 ▼0.94
Dashboard /wp-admin2,213 ▲255.85 ▲0.73104.81 ▼5.0244.49 ▼1.19
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0434.94 ▲0.0034.49 ▼0.81
Add New Post /wp-admin/post-new.php1,537 ▲423.36 ▲0.13636.78 ▼69.3562.04 ▲9.54
Media Library /wp-admin/upload.php1,386 ▼54.12 ▼0.0894.11 ▼8.4341.11 ▼3.21
SOWPROG /wp-admin/tools.php?page=sowprog-events/sowprog_events_configuration.php8712.0224.5221.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_sp_event_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === sowprog-events === )
Please take inspiration from this readme.txt

sowprog-events/sowprog_wordpress_events.php 92% from 13 tests

"SOWPROG Events" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("sowprog-events.php" instead of "sowprog_wordpress_events.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
Everything looks great! No dangerous files found in this plugin5,545 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript489188142,755
CSS91492101,351
SVG100565
PHP512760547
Markdown61900327

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity14.75
▷ Minimum class complexity9.00
▷ Maximum class complexity28.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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