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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 44.91 ▲1.06 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.84 ▼4.94 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.18 ▲0.80 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 80.33 ▼13.11 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.07 ▲2.87 |
Import /wp-admin/admin.php?page=ObEventManagerImport | 3.28 | 32.27 |
All Events /wp-admin/edit.php?post_type=ob-event | 3.38 | 36.31 |
New Events /wp-admin/post-new.php?post_type=ob-event | 3.38 | 40.78 |
Event Manger /wp-admin/admin.php?page=ObEventManager | 3.31 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲105 | 13.63 ▼1.12 | 1.55 ▼0.37 | 40.66 ▼2.71 |
Dashboard /wp-admin | 2,257 ▲66 | 5.92 ▲1.04 | 97.88 ▼11.57 | 82.42 ▲36.66 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.11 ▲0.09 | 38.91 ▲3.20 | 33.53 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,559 ▲21 | 23.14 ▼0.27 | 700.05 ▲9.01 | 51.05 ▼3.01 |
Media Library /wp-admin/upload.php | 1,436 ▲51 | 4.27 ▲0.05 | 95.20 ▼7.39 | 78.08 ▲31.18 |
Import /wp-admin/admin.php?page=ObEventManagerImport | 849 | 1.79 | 27.35 | 36.71 |
All Events /wp-admin/edit.php?post_type=ob-event | 1,100 | 2.02 | 35.83 | 30.21 |
New Events /wp-admin/post-new.php?post_type=ob-event | 1,583 | 2.72 | 51.57 | 70.16 |
Event Manger /wp-admin/admin.php?page=ObEventManager | 855 | 1.92 | 27.59 | 28.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 71 | 38 | 546 |
JavaScript | 2 | 0 | 8 | 163 |
Markdown | 1 | 14 | 0 | 47 |
CSS | 3 | 1 | 5 | 3 |
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 code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/obem-icon.png | 1.08KB | 0.94KB | ▼ 12.51% |
assets/img/obem-main.png | 3.22KB | 2.33KB | ▼ 27.55% |