68% 5280-bootstrap-modal-contact-form

Code Review | 5280 Bootstrap Modal Contact Form

WordPress plugin 5280 Bootstrap Modal Contact Form scored 68% 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: 5.9.2
  • 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 / 592 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0952.76 ▲5.11
Dashboard /wp-admin3.44 ▲0.0332.21 ▼0.29
Posts /wp-admin/edit.php3.67 ▲0.0338.71 ▲2.01
Add New Post /wp-admin/post-new.php6.94 ▼0.0594.15 ▼1,178.68
Media Library /wp-admin/upload.php3.32 ▲0.0222.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,923 ▲17016.19 ▲0.428.84 ▲2.362.68 ▼0.28
Dashboard /wp-admin2,910 ▲526.01 ▼0.07115.32 ▼19.60152.90 ▼7.67
Posts /wp-admin/edit.php2,709 ▲153.25 ▲0.0163.09 ▼0.34138.67 ▼2.39
Add New Post /wp-admin/post-new.php1,675 ▼7716.30 ▼5.23392.93 ▼93.07153.25 ▼0.13
Media Library /wp-admin/upload.php1,720 ▲225.57 ▲0.05138.73 ▼4.05185.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

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

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 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
There were not PNG files found in your plugin