83% insert-pipefy-form-launcher

Code Review | Insert Pipefy Form Launcher

WordPress plugin Insert Pipefy Form Launcher scored83%from 54 tests.

About plugin

  • Plugin page: insert-pipefy-for...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: May 30, 2020
  • Latest release: Aug 15, 2020
  • Number of updates: 4
  • Update frequency: every 20.0 days
  • Top authors: thiagomatsunaga (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /688 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Insert Pipefy Form Launcher
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.04 ▼5.08
Dashboard /wp-admin3.34 ▲0.0345.35 ▼4.96
Posts /wp-admin/edit.php3.39 ▲0.0345.42 ▼2.20
Add New Post /wp-admin/post-new.php5.94 ▲0.0484.05 ▼3.70
Media Library /wp-admin/upload.php3.26 ▲0.0333.51 ▲0.38
Insert Pipefy Form Launcher /wp-admin/tools.php?page=insert-pipefy-form-launcher/pipefy-launcher.php3.2141.09

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
ipfl_plugin_variable_fullpage
db_upgraded

Browser metrics Passed 4 tests

Insert Pipefy Form Launcher: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12613.33 ▼1.261.92 ▼0.1244.64 ▼5.61
Dashboard /wp-admin2,230 ▲425.03 ▼0.82111.27 ▼4.7337.62 ▼5.31
Posts /wp-admin/edit.php2,112 ▲232.24 ▲0.1940.88 ▲6.0237.01 ▲5.51
Add New Post /wp-admin/post-new.php1,529 ▼423.67 ▲0.36688.01 ▲61.0737.35 ▼14.04
Media Library /wp-admin/upload.php1,412 ▲304.37 ▲0.15102.08 ▼1.2743.49 ▼3.48
Insert Pipefy Form Launcher /wp-admin/tools.php?page=insert-pipefy-form-launcher/pipefy-launcher.php9482.2838.3328.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • ipfl_plugin_variable_fullpage
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insert-pipefy-form-launcher/pipefy-launcher-frontend.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/insert-pipefy-form-launcher/pipefy-launcher-frontend-open-full-empty-state.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/insert-pipefy-form-launcher/pipefy-launcher-settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/insert-pipefy-form-launcher/pipefy-launcher-frontend-open.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/insert-pipefy-form-launcher/pipefy-launcher.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/insert-pipefy-form-launcher/pipefy-launcher-frontend-empty-state.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/insert-pipefy-form-launcher/pipefy-launcher-frontend-open-full.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 42 tag instead of maximum 10
The official readme.txt is a good inspiration

insert-pipefy-form-launcher/pipefy-launcher.php 77% from 13 tests

The main PHP script in "Insert Pipefy Form Launcher" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("insert-pipefy-form-launcher.php" instead of "pipefy-launcher.php")
  • Domain Path: The domain path is invalid: folder "/lang/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin730 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS14713330
PHP76127299
JavaScript2137101

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin