87% bomond-event

Code Review | Bomond Event

WordPress plugin Bomond Event scored 87% from 53 tests.

About plugin

  • Plugin page: bomond-event
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Dec 17, 2018
  • Latest release: Dec 28, 2018
  • Number of updates: 9
  • Update frequency: every 1.3 days
  • Top authors: webnautspro (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 329 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼265.22ms] Passed 4 tests

Analyzing server-side resources used by Bomond Event
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1331.87 ▲11.79
Dashboard /wp-admin3.08 ▲0.0339.61 ▼10.36
Posts /wp-admin/edit.php3.13 ▲0.0344.70 ▲1.14
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.12 ▼1,048.70
Media Library /wp-admin/upload.php3.02 ▲0.0134.74 ▼2.94

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: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Bomond Event
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,834 ▲22816.89 ▲1.3210.87 ▲3.0647.11 ▼6.61
Dashboard /wp-admin2,975 ▲1226.55 ▲0.68141.09 ▲12.77101.25 ▼8.00
Posts /wp-admin/edit.php2,757 ▲543.00 ▲0.1866.48 ▲1.69100.10 ▲17.32
Add New Post /wp-admin/post-new.php1,685 ▼16818.88 ▼0.12364.70 ▼15.59103.16 ▼5.67
Media Library /wp-admin/upload.php1,823 ▲515.38 ▲0.36127.13 ▼25.71114.48 ▼4.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/bomond-event/public/partials/bomondevent-public-display.php
    • > /wp-content/plugins/bomond-event/admin/partials/bomondevent-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bomond-event/includes/class-bomondevent.php:253

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === bomond-event === )
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
You can take inspiration from this readme.txt

bomond-event/bomondevent.php 85% from 13 tests

The main PHP script in "Bomond Event" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("bomond-event.php" instead of "bomondevent.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,356 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2849722,122
PHP14154544960
CSS44413274

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.38
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin