Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.09ms] Passed 4 tests
A check of server-side resources used by 5280 Bootstrap Modal Contact Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 44.55 ▼8.65 |
Dashboard /wp-admin | 3.49 ▲0.19 | 56.81 ▲2.36 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 49.12 ▼5.70 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 89.95 ▼4.36 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 43.33 ▲7.24 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sbmcf_messages |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
sbmcf_modal_group_name |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for 5280 Bootstrap Modal Contact Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.45 ▼1.28 | 8.93 ▲7.25 | 43.15 ▼2.57 |
Dashboard /wp-admin | 2,214 ▲34 | 5.56 ▼0.09 | 98.62 ▲9.58 | 42.05 ▲1.68 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.03 ▲0.01 | 34.34 ▼1.32 | 35.68 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.19 ▲0.24 | 676.55 ▼11.81 | 53.78 ▼6.99 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.25 ▲0.06 | 96.62 ▼10.22 | 43.39 ▼4.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_sbmcf_messages
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- sbmcf_modal_group_name
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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 perform the action of outputting non-empty strings 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 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_t_color in wp-content/plugins/5280-bootstrap-modal-contact-form/inc/modal.php on line 1
- > 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_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_color in wp-content/plugins/5280-bootstrap-modal-contact-form/inc/modal.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: bootstrap, pop-up, modal, contact form
5280-bootstrap-modal-contact-form/5280-bootstrap-modal-cf.php 92% from 13 tests
This is the main PHP file of "5280 Bootstrap Modal Contact Form" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be 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
There were no executable files found in this plugin1,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
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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
PNG images were not found in this plugin