79% machform-shortcode

Code Review | MachForm Shortcode

WordPress plugin MachForm Shortcode scored79%from 54 tests.

About plugin

  • Plugin page: machform-shortcode
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 18, 2013
  • Latest release: Nov 16, 2017
  • Number of updates: 33
  • Update frequency: every 47.0 days
  • Top authors: rlaymance (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /8,561 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.86ms] Passed 4 tests

Server-side resources used by MachForm Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.11 ▲2.15
Dashboard /wp-admin3.33 ▲0.0347.07 ▼2.66
Posts /wp-admin/edit.php3.39 ▲0.0346.04 ▼0.34
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.16 ▼17.99
Media Library /wp-admin/upload.php3.26 ▲0.0334.79 ▲1.55
Machform Shortcode /wp-admin/options-general.php?page=machform_shortcodes3.2030.98

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for MachForm Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.25 ▲0.021.54 ▼0.2035.93 ▼11.50
Dashboard /wp-admin2,204 ▲275.50 ▼0.1882.14 ▼10.3938.05 ▼5.37
Posts /wp-admin/edit.php2,110 ▲131.99 ▲0.0537.01 ▼2.0733.49 ▼4.85
Add New Post /wp-admin/post-new.php1,537 ▲623.09 ▲0.05642.06 ▲3.4460.09 ▼9.28
Media Library /wp-admin/upload.php1,412 ▲124.19 ▲0.03104.00 ▲11.5244.65 ▲5.52
Machform Shortcode /wp-admin/options-general.php?page=machform_shortcodes9872.2922.7430.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=machform_shortcodes
    • > Notice in wp-content/plugins/machform-shortcode/machform-shortcode.php+156
    Undefined index: mfsc_submit

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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/machform-shortcode/machform-shortcode.php

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: machform, shortcode, appnitro, forms

machform-shortcode/machform-shortcode.php Passed 13 tests

Analyzing the main PHP file in "MachForm Shortcode" version 1.4.1
106 characters long description:
Creates a shortcode for inserting Machform forms into your posts or pages (only tested with MachForm 3.5+)

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 detected182 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15454181
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin