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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 31.87 ▲11.79 |
Dashboard /wp-admin | 3.08 ▲0.03 | 39.61 ▼10.36 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 44.70 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 93.12 ▼1,048.70 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲228 | 16.89 ▲1.32 | 10.87 ▲3.06 | 47.11 ▼6.61 |
Dashboard /wp-admin | 2,975 ▲122 | 6.55 ▲0.68 | 141.09 ▲12.77 | 101.25 ▼8.00 |
Posts /wp-admin/edit.php | 2,757 ▲54 | 3.00 ▲0.18 | 66.48 ▲1.69 | 100.10 ▲17.32 |
Add New Post /wp-admin/post-new.php | 1,685 ▼168 | 18.88 ▼0.12 | 364.70 ▼15.59 | 103.16 ▼5.67 |
Media Library /wp-admin/upload.php | 1,823 ▲51 | 5.38 ▲0.36 | 127.13 ▼25.71 | 114.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 849 | 72 | 2,122 |
PHP | 14 | 154 | 544 | 960 |
CSS | 4 | 44 | 13 | 274 |
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 code | 0.14 |
Average class complexity | 2.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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