68% 5280-bootstrap-modal-contact-form

Code Review | 5280 Bootstrap Modal Contact Form

WordPress plugin 5280 Bootstrap Modal Contact Form scored68%from 54 tests.

About plugin

  • Plugin page: 5280-bootstrap-mo...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 4, 2019
  • Latest release: Jan 4, 2019
  • Number of updates: 19
  • Update frequency: N/A
  • Top authors: 5280studios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /879 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1944.55 ▼8.65
Dashboard /wp-admin3.49 ▲0.1956.81 ▲2.36
Posts /wp-admin/edit.php3.61 ▲0.2549.12 ▼5.70
Add New Post /wp-admin/post-new.php6.09 ▲0.2189.95 ▼4.36
Media Library /wp-admin/upload.php3.42 ▲0.1943.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15313.45 ▼1.288.93 ▲7.2543.15 ▼2.57
Dashboard /wp-admin2,214 ▲345.56 ▼0.0998.62 ▲9.5842.05 ▲1.68
Posts /wp-admin/edit.php2,113 ▲132.03 ▲0.0134.34 ▼1.3235.68 ▲0.91
Add New Post /wp-admin/post-new.php1,540 ▲1223.19 ▲0.24676.55 ▼11.8153.78 ▼6.99
Media Library /wp-admin/upload.php1,416 ▲164.25 ▲0.0696.62 ▼10.2243.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP52975991,058
JavaScript2310104
SVG10135
CSS1102

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 code0.35
Average class complexity50.00
▷ Minimum class complexity12.00
▷ Maximum class complexity124.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods74
▷ Static methods00.00%
▷ Public methods5371.62%
▷ Protected methods2128.38%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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