Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.69ms] Passed 4 tests
Analyzing server-side resources used by Om Contact Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.01 ▲2.26 |
Dashboard /wp-admin | 3.43 ▲0.13 | 43.95 ▼9.10 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.84 ▼0.42 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 81.44 ▼17.68 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 34.35 ▼3.55 |
Om Contact /wp-admin/admin.php?page=om-contact-form-page | 3.29 | 33.92 |
Contact Report /wp-admin/admin.php?page=om-contact-form-submenu-page | 3.29 | 31.32 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_om_contact_form |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
om_contact_form_db_version |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Om Contact Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲179 | 13.54 ▼1.09 | 9.83 ▲7.97 | 45.67 ▲2.86 |
Dashboard /wp-admin | 2,238 ▲64 | 5.72 ▲0.15 | 86.87 ▼5.27 | 76.74 ▲36.76 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.24 ▲0.29 | 41.75 ▼1.83 | 35.12 ▼4.12 |
Add New Post /wp-admin/post-new.php | 1,726 ▲200 | 24.90 ▲1.21 | 745.25 ▲55.70 | 65.77 ▲12.39 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.24 ▲0.06 | 95.85 ▼10.93 | 72.32 ▲22.06 |
Om Contact /wp-admin/admin.php?page=om-contact-form-page | 913 | 2.24 | 30.70 | 26.51 |
Contact Report /wp-admin/admin.php?page=om-contact-form-submenu-page | 829 | 2.34 | 29.72 | 35.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/om-contact-form/index.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-contact-form/admin-menu/admin_sub_menu.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-contact-form/including_js_css.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/om-contact-form/shortcode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-contact-form/admin-menu/admin_main_menu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-contact-form/mail_function.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=om-contact-form-submenu-page
- > Network (severe)
wp-content/plugins/om-contact-form/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Om Contact Form===
) - Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in om-contact-form/assets to your readme.txt
om-contact-form/index.php 92% from 13 tests
The main file in "Om Contact Form" v. 1.0.05 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("om-contact-form.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,207 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 85 | 125 | 803 |
PHP | 7 | 21 | 39 | 299 |
JavaScript | 2 | 23 | 45 | 105 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 14 | |
▷ Named functions | 14 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 0.57KB | 0.83KB | 0.00% |
images/om_bg.png | 0.94KB | 0.09KB | ▼ 89.96% |
images/om-contact.png | 0.67KB | 0.66KB | ▼ 2.17% |