79% fmpress-forms

Code Review | FMPress Forms

WordPress plugin FMPress Forms scored79%from 54 tests.

About plugin

  • Plugin page: fmpress-forms
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2021
  • Latest release: Apr 24, 2023
  • Number of updates: 19
  • Update frequency: every 27.6 days
  • Top authors: emiccorp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,933 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.47ms] Passed 4 tests

Server-side resources used by FMPress Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.50 ▲3.59
Dashboard /wp-admin3.31 ▲0.0047.57 ▼0.14
Posts /wp-admin/edit.php3.36 ▲0.0051.84 ▲1.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.51 ▼12.54
Media Library /wp-admin/upload.php3.23 ▲0.0032.74 ▼2.87
Documentation /wp-admin/edit.php?post_type=connect_datasource&page=support3.0024.73
Datasources /wp-admin/edit.php?post_type=connect_datasource3.0426.66

Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for FMPress Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲16213.25 ▼1.125.48 ▲3.7446.31 ▲6.60
Dashboard /wp-admin2,206 ▲174.86 ▼0.0198.61 ▼15.1739.50 ▼2.72
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0237.64 ▼6.0432.35 ▼4.74
Add New Post /wp-admin/post-new.php1,537 ▲423.15 ▼0.29652.95 ▲55.1174.74 ▲30.12
Media Library /wp-admin/upload.php1,388 ▲64.17 ▼0.1198.72 ▲1.6841.70 ▼2.26
Documentation /wp-admin/edit.php?post_type=connect_datasource&page=support280.440.103.64
Datasources /wp-admin/edit.php?post_type=connect_datasource280.440.104.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 10× PHP files output text when accessed directly:
    • > /wp-content/plugins/fmpress-forms/includes/drivers/class-database.php
    • > /wp-content/plugins/fmpress-forms/includes/class-fm-value-list.php
    • > /wp-content/plugins/fmpress-forms/includes/drivers/class-fmdapi.php
    • > /wp-content/plugins/fmpress-forms/admin/class-admin.php
    • > /wp-content/plugins/fmpress-forms/admin/class-datasources.php
    • > /wp-content/plugins/fmpress-forms/includes/class-forms.php
    • > /wp-content/plugins/fmpress-forms/admin/class-admin-ajax.php
    • > /wp-content/plugins/fmpress-forms/admin/class-settings.php
    • > /wp-content/plugins/fmpress-forms/includes/class-utils.php
    • > /wp-content/plugins/fmpress-forms/fmpress-forms.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=connect_datasource&page=support
    • > Network (severe)
    wp-admin/edit.php?post_type=connect_datasource&page=support - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=connect_datasource
    • > Network (severe)
    wp-admin/edit.php?post_type=connect_datasource - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: database, contact form 7, filemaker, claris, form

fmpress-forms/fmpress-forms.php Passed 13 tests

Analyzing the main PHP file in "FMPress Forms" version 1.3.1
25 characters long description:
Addon for Contact Form 7.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,465 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript154599332,089
PHP104441,2291,976
CSS16510264
PO File1571136

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity27.40
▷ Minimum class complexity6.00
▷ Maximum class complexity76.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes9100.00%
Methods120
▷ Static methods119.17%
▷ Public methods7260.00%
▷ Protected methods75.83%
▷ Private methods4134.17%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants11
▷ Global constants327.27%
▷ Class constants872.73%
▷ Public constants675.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected