78% bp-event-manager

Code Review | BP Event Manager

WordPress plugin BP Event Manager scored 78% from 54 tests.

About plugin

  • Plugin page: bp-event-manager
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-5.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2019
  • Latest release: Oct 13, 2019
  • Number of updates: 59
  • Update frequency: every 4.8 days
  • Top authors: zaheer01 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 2,265 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.16ms] Passed 4 tests

Server-side resources used by BP Event Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.62 ▲0.79
Dashboard /wp-admin3.31 ▲0.0045.01 ▼6.95
Posts /wp-admin/edit.php3.36 ▲0.0044.51 ▲1.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.28 ▼6.69
Media Library /wp-admin/upload.php3.23 ▲0.0034.24 ▲0.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BP Event Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.121.75 ▲0.0343.22 ▼5.92
Dashboard /wp-admin2,203 ▲125.85 ▼0.0595.54 ▼9.1636.99 ▼2.21
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0135.41 ▲0.8231.05 ▼0.15
Add New Post /wp-admin/post-new.php1,535 ▲2123.06 ▲5.56613.71 ▼80.5455.70 ▼7.34
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0496.96 ▼1.9542.93 ▼1.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_all_events

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bp-event-manager/bp-event-manager.php
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bp-event-manager/bpem-front/bpem-event-further-details.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-event-manager/bpem-front/bpem-event-calendar.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-event-manager/bpem-front/bpem_event_update_response.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bp-event-manager/bpem-front/bpem-user-can-events.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bp-event-manager/bpem-front/bpem_google_map.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-event-manager/bpem-dash/bpem-admin-settings-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bp-event-manager/bpem-front/bpem_event_info.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _x() in wp-content/plugins/bp-event-manager/bpem-dash/bpem-post-type.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-event-manager/bpem-front/bpem-event-form.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-event-manager/bpem-front/bpem_leave_event.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: You can look at the official readme.txt

bp-event-manager/bp-event-manager.php Passed 13 tests

The entry point to "BP Event Manager" version 1.1.0 is a PHP file that has certain tags in its header comment area
83 characters long description:
Plug and Play Plugin Development. A person can create events for buddypress groups.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected11,560 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
CSS9110643,038
SVG1002,671
LESS1434441,758
Sass1330321,740
PHP218,1923171,589
JavaScript513569652
PO File13334112

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.50
▷ Minimum class complexity6.00
▷ Maximum class complexity7.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions29
▷ Named functions29100.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
PNG images were not found in this plugin