Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.45MB] [CPU: ▼158.69ms] Passed 4 tests
An overview of server-side resources used by OpenInbound
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.14 | 26.77 ▲5.66 |
Dashboard /wp-admin | 3.30 ▲0.24 | 38.95 ▼3.26 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 39.63 ▲8.05 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.36 | 27.58 ▼645.20 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 33.08 ▲10.52 |
OpenInbound /wp-admin/options-general.php?page=openinbound | 3.15 | 28.02 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for OpenInbound
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,671 ▲70 | 15.90 ▼0.19 | 5.20 ▼1.76 | 75.93 ▼3.23 |
Dashboard /wp-admin | 2,938 ▲43 | 6.08 ▼0.08 | 114.64 ▼17.81 | 168.33 ▼13.79 |
Posts /wp-admin/edit.php | 2,742 ▲2 | 3.23 ▲0.00 | 70.68 ▲7.35 | 193.02 ▲60.27 |
Add New Post /wp-admin/post-new.php | 3,701 ▼40 | 18.48 ▼0.10 | 423.79 ▼2.80 | 162.13 ▲1.02 |
Media Library /wp-admin/upload.php | 1,754 ▲5 | 5.50 ▼0.00 | 142.40 ▼3.94 | 190.73 ▲7.34 |
OpenInbound /wp-admin/options-general.php?page=openinbound | 1,076 | 2.41 | 54.13 | 140.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Required\\OpenInbound\\FormInterface' not found in wp-content/plugins/openinbound-for-wp/classes/FormAbstract.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function Required\\OpenInbound\\add_action() in wp-content/plugins/openinbound-for-wp/init.php:20
- > PHP Fatal error
Uncaught Error: Class 'Required\\OpenInbound\\FormAbstract' not found in wp-content/plugins/openinbound-for-wp/classes/ContactForm7.php:15
- > PHP Fatal error
Uncaught Error: Class 'GFFeedAddOn' not found in wp-content/plugins/openinbound-for-wp/classes/GravityFormsFeed.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require 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)
openinbound-for-wp/openinbound.php 85% from 13 tests
"OpenInbound" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("openinbound-for-wp.php" instead of "openinbound.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,220 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 242 | 714 | 1,009 |
JSON | 3 | 0 | 0 | 120 |
Markdown | 2 | 22 | 0 | 91 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 6 | 7.50% |
▷ Public methods | 75 | 93.75% |
▷ Protected methods | 4 | 5.00% |
▷ Private methods | 1 | 1.25% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin