83% sel-church-events

Code Review | Sel Church Events

WordPress plugin Sel Church Events scored83%from 54 tests.

About plugin

  • Plugin page: sel-church-events
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Aug 11, 2017
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: selthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.51MB] [CPU: ▼1.11ms] Passed 4 tests

An overview of server-side resources used by Sel Church Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5343.60 ▼1.20
Dashboard /wp-admin3.85 ▲0.5451.91 ▲1.71
Posts /wp-admin/edit.php3.91 ▲0.5556.59 ▲6.46
Add New Post /wp-admin/post-new.php6.37 ▲0.4886.76 ▼11.39
Media Library /wp-admin/upload.php3.71 ▲0.4844.95 ▲11.67
Category /wp-admin/edit-tags.php?taxonomy=selt_event_category&post_type=selt_event3.7140.94
All Events /wp-admin/edit.php?post_type=selt_event3.8243.96
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.8834.46
New Event /wp-admin/post-new.php?post_type=selt_event3.9353.75

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Sel Church Events
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9214.40 ▲0.111.68 ▼0.3044.76 ▼0.94
Dashboard /wp-admin2,253 ▲735.53 ▼0.1598.13 ▲2.9944.71 ▲6.90
Posts /wp-admin/edit.php2,170 ▲702.08 ▲0.0542.99 ▲2.8141.12 ▲4.23
Add New Post /wp-admin/post-new.php1,578 ▲5223.35 ▲0.28669.57 ▼18.4166.12 ▲13.16
Media Library /wp-admin/upload.php1,469 ▲694.15 ▼0.09111.79 ▲3.5953.99 ▲8.29
Category /wp-admin/edit-tags.php?taxonomy=selt_event_category&post_type=selt_event1,3462.3029.0335.87
All Events /wp-admin/edit.php?post_type=selt_event1,1932.0233.6934.86
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,0022.0626.5131.06
New Event /wp-admin/post-new.php?post_type=selt_event2,6467.66195.3575.29

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_upcoming-events
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • 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)
Good news, no errors were detected

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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sel-church-events/inc/tgmpa/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sel-church-events/inc/tgmpa/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: events, church, church event

sel-church-events/plugin.php 77% from 13 tests

The main PHP script in "Sel Church Events" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sel-church-events.php" instead of "plugin.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,102 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP85591,8672,102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity44.25
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods105
▷ Static methods54.76%
▷ Public methods8278.10%
▷ Protected methods2321.90%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin