89% pipefy-public-form

Code Review | Pipefy Public Form

WordPress plugin Pipefy Public Form scored89%from 54 tests.

About plugin

  • Plugin page: pipefy-public-form
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2022
  • Latest release: Jan 10, 2023
  • Number of updates: 4
  • Update frequency: every 10.5 days
  • Top authors: pipefy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.79ms] Passed 4 tests

This is a short check of server-side resources used by Pipefy Public Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.16 ▲1.65
Dashboard /wp-admin3.32 ▲0.0243.44 ▼6.40
Posts /wp-admin/edit.php3.38 ▲0.0245.57 ▼3.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.38 ▼12.20
Media Library /wp-admin/upload.php3.25 ▲0.0133.16 ▼1.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pipefy Public Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.68 ▼0.721.59 ▼0.4842.35 ▼0.63
Dashboard /wp-admin2,206 ▲154.82 ▼0.01110.18 ▲4.7640.21 ▼3.46
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0139.91 ▲0.5935.12 ▼0.61
Add New Post /wp-admin/post-new.php6,354 ▲4,82027.78 ▲4.42824.56 ▲216.3648.39 ▼2.16
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.01103.29 ▲6.0941.68 ▼0.32

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Screenshots 1.), #2 (Screenshots 2.)
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

pipefy-public-form/pipefy-public-form.php Passed 13 tests

The main PHP script in "Pipefy Public Form" version 1.1 is automatically included on every request by WordPress
125 characters long description:
Pipefy Public Form allows you to easily add customizable forms to your website to capture lead or customer requests and data.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin262 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP43758201
JSON10044
CSS30016
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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