78% ob-event-manger

Code Review | OB Event Manger

WordPress plugin OB Event Manger scored78%from 54 tests.

About plugin

  • Plugin page: ob-event-manger
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2018
  • Latest release: Oct 27, 2020
  • Number of updates: 6
  • Update frequency: every 127.5 days
  • Top authors: oudaryamayburai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /639 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.05ms] Passed 4 tests

A check of server-side resources used by OB Event Manger
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1244.91 ▲1.06
Dashboard /wp-admin3.42 ▲0.1244.84 ▼4.94
Posts /wp-admin/edit.php3.47 ▲0.1250.18 ▲0.80
Add New Post /wp-admin/post-new.php6.00 ▲0.1280.33 ▼13.11
Media Library /wp-admin/upload.php3.34 ▲0.1135.07 ▲2.87
Import /wp-admin/admin.php?page=ObEventManagerImport3.2832.27
All Events /wp-admin/edit.php?post_type=ob-event3.3836.31
New Events /wp-admin/post-new.php?post_type=ob-event3.3840.78
Event Manger /wp-admin/admin.php?page=ObEventManager3.3132.06

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
obem_page_id
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for OB Event Manger
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.63 ▼1.121.55 ▼0.3740.66 ▼2.71
Dashboard /wp-admin2,257 ▲665.92 ▲1.0497.88 ▼11.5782.42 ▲36.66
Posts /wp-admin/edit.php2,143 ▲542.11 ▲0.0938.91 ▲3.2033.53 ▼4.08
Add New Post /wp-admin/post-new.php1,559 ▲2123.14 ▼0.27700.05 ▲9.0151.05 ▼3.01
Media Library /wp-admin/upload.php1,436 ▲514.27 ▲0.0595.20 ▼7.3978.08 ▲31.18
Import /wp-admin/admin.php?page=ObEventManagerImport8491.7927.3536.71
All Events /wp-admin/edit.php?post_type=ob-event1,1002.0235.8330.21
New Events /wp-admin/post-new.php?post_type=ob-event1,5832.7251.5770.16
Event Manger /wp-admin/admin.php?page=ObEventManager8551.9227.5928.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • obem_page_id
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=ObEventManagerImport
    • > Notice in wp-content/plugins/ob-event-manger/inc/import.php+76
    Undefined variable: color

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ob-event-manger/ob-event-manager.php:10

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: ob, manger, eventmanger, event

ob-event-manger/ob-event-manager.php 92% from 13 tests

"OB Event Manger" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ob-event-manger.php" instead of "ob-event-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected759 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP57138546
JavaScript208163
Markdown114047
CSS3153

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/obem-icon.png1.08KB0.94KB▼ 12.51%
assets/img/obem-main.png3.22KB2.33KB▼ 27.55%