10% pinpointe-form-integration

Code Review | Pinpointe Form Integration

WordPress plugin Pinpointe Form Integration scored 10% from 54 tests.

About plugin

  • Plugin page: pinpointe-form-in...
  • Plugin version: 1.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 5.8.1
  • First release: Jan 31, 2016
  • Latest release: Jun 15, 2021
  • Number of updates: 17
  • Update frequency: every 115.4 days
  • Top authors: pinpointe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 941 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/pinpointe-form-integration/pinpointe-signup-form.php+135
    Function create_function() is deprecated

Server metrics [RAM: ▼0.76MB] [CPU: ▼187.22ms] Passed 4 tests

Server-side resources used by Pinpointe Form Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1510.21 ▼16.26
Dashboard /wp-admin2.88 ▼0.1710.32 ▼37.57
Posts /wp-admin/edit.php2.88 ▼0.2210.85 ▼40.18
Add New Post /wp-admin/post-new.php2.88 ▼2.559.73 ▼649.61
Media Library /wp-admin/upload.php2.88 ▼0.1210.89 ▼21.50
Pinpointe /wp-admin/options-general.php?page=pinpointe2.8910.66

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 1 new option
New WordPress options
widget_pinpointe_form

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pinpointe Form Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.19 ▲0.668.96 ▼2.3347.72 ▼2.94
Dashboard /wp-admin2,978 ▲445.86 ▼0.10137.71 ▼42.94116.58 ▲4.37
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0167.12 ▼6.39100.15 ▲10.04
Add New Post /wp-admin/post-new.php1,501 ▼10318.88 ▲0.29379.09 ▼0.51112.74 ▼1.89
Media Library /wp-admin/upload.php1,812 ▲85.01 ▼0.01156.34 ▼1.09119.25 ▼5.77
Pinpointe /wp-admin/options-general.php?page=pinpointe1,2933.0075.5483.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/pinpointe-form-integration/pinpointe-signup-form.php+135
    Function create_function() is deprecated

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=pinpointe
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/pinpointe-form-integration/pinpointe-signup-form.php+135
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pinpointe-form-integration/includes/pinpointe-widget.class.php:11

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: popups, subscription, email marketing, opt-in, mailing list...

pinpointe-form-integration/pinpointe-signup-form.php 85% from 13 tests

The entry point to "Pinpointe Form Integration" version 1.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pinpointe-form-integration.php" instead of "pinpointe-signup-form.php")

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected8,907 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP68101,1174,018
JavaScript113982922,282
CSS82391542,193
SVG100414

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 142)
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity228.33
▷ Minimum class complexity20.00
▷ Maximum class complexity627.00
Average method complexity8.41
▷ Minimum method complexity1.00
▷ Maximum method complexity142.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods92
▷ Static methods66.52%
▷ Public methods8895.65%
▷ Protected methods00.00%
▷ Private methods44.35%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
16 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%
assets/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png5.68KB1.83KB▼ 67.77%
assets/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png0.27KB0.14KB▼ 47.84%
assets/css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
assets/css/chosen-sprite.png0.63KB0.88KB0.00%