93% kbm-event-app-connector

Code Review | KBM Event App Connector

WordPress plugin KBM Event App Connector scored 93% from 54 tests.

About plugin

  • Plugin page: kbm-event-app-con...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5.2
  • WordPress version: 5.8.1
  • First release: Jul 24, 2013
  • Latest release: Jul 31, 2013
  • Number of updates: 15
  • Update frequency: every 0.5 days
  • Top authors: keendev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 615 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼141.73ms] Passed 4 tests

This is a short check of server-side resources used by KBM Event App Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0134.95 ▲2.40
Dashboard /wp-admin3.07 ▲0.0145.87 ▼9.55
Posts /wp-admin/edit.php3.12 ▲0.0147.82 ▲0.83
Add New Post /wp-admin/post-new.php5.42 ▼0.0197.88 ▼555.21
Media Library /wp-admin/upload.php3.01 ▲0.0130.75 ▼2.97

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for KBM Event App Connector
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲13115.78 ▲0.2311.56 ▲0.0445.72 ▼1.09
Dashboard /wp-admin2,967 ▲335.89 ▼0.10153.79 ▼9.38110.44 ▼3.00
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0066.38 ▼10.5987.39 ▼1.68
Add New Post /wp-admin/post-new.php1,683 ▲18518.52 ▼0.30390.42 ▼3.62114.94 ▲8.80
Media Library /wp-admin/upload.php1,807 ▼35.00 ▼0.01158.78 ▼5.69119.68 ▲3.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/kbm-event-app-connector/kbm_event_app_connector.php:14

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Screenshots Coming Soon) image missing
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === kbm-event-app-connector === )
You can look at the official readme.txt

kbm-event-app-connector/kbm_event_app_connector.php 92% from 13 tests

"KBM Event App Connector" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kbm-event-app-connector.php" instead of "kbm_event_app_connector.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
Success! There were no dangerous files found in this plugin60 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1261460

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected