Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼296.56ms] Passed 4 tests
Server-side resources used by 5280 Bootstrap Modal Contact Form
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 52.76 ▲5.11 |
Dashboard /wp-admin | 3.44 ▲0.03 | 32.21 ▼0.29 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.71 ▲2.01 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.05 | 94.15 ▼1,178.68 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 22.41 ▼9.26 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_sbmcf_messages |
New WordPress options |
---|
sbmcf_modal_group_name |
Browser metrics Passed 4 tests
A check of browser resources used by 5280 Bootstrap Modal Contact Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,923 ▲170 | 16.19 ▲0.42 | 8.84 ▲2.36 | 2.68 ▼0.28 |
Dashboard /wp-admin | 2,910 ▲52 | 6.01 ▼0.07 | 115.32 ▼19.60 | 152.90 ▼7.67 |
Posts /wp-admin/edit.php | 2,709 ▲15 | 3.25 ▲0.01 | 63.09 ▼0.34 | 138.67 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,675 ▼77 | 16.30 ▼5.23 | 392.93 ▼93.07 | 153.25 ▼0.13 |
Media Library /wp-admin/upload.php | 1,720 ▲22 | 5.57 ▲0.05 | 138.73 ▼4.05 | 185.78 ▼10.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_sbmcf_messages
- Zombie WordPress options detected upon uninstall: 1 option
- sbmcf_modal_group_name
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/5280-bootstrap-modal-contact-form/5280-bootstrap-modal-cf.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/5280-bootstrap-modal-contact-form/inc/modal.php:12
- > PHP Notice
Undefined variable: my_title in wp-content/plugins/5280-bootstrap-modal-contact-form/inc/modal.php on line 6
- > PHP Notice
Undefined variable: my_color in wp-content/plugins/5280-bootstrap-modal-contact-form/inc/modal.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Tablesbmm' not found in wp-content/plugins/5280-bootstrap-modal-contact-form/inc/class-sbmm-list-table.php:2
- > PHP Notice
Undefined variable: my_t_color in wp-content/plugins/5280-bootstrap-modal-contact-form/inc/modal.php on line 1
- > PHP Notice
Undefined variable: my_color in wp-content/plugins/5280-bootstrap-modal-contact-form/inc/modal.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: bootstrap, pop-up, contact form, modal
5280-bootstrap-modal-contact-form/5280-bootstrap-modal-cf.php 92% from 13 tests
Analyzing the main PHP file in "5280 Bootstrap Modal Contact Form" version 1.0
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("5280-bootstrap-modal-contact-form.php" instead of "5280-bootstrap-modal-cf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,199 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 297 | 599 | 1,058 |
JavaScript | 2 | 31 | 0 | 104 |
SVG | 1 | 0 | 1 | 35 |
CSS | 1 | 1 | 0 | 2 |
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.35 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 71.62% |
▷ Protected methods | 21 | 28.38% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin