84% powr-pack

Code Review | Contact Form - Custom Builder, Payment Form, and More

WordPress plugin Contact Form - Custom Builder, Payment Form, and More scored84%from 54 tests.

About plugin

  • Plugin page: powr-pack
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Oct 6, 2016
  • Latest release: Nov 21, 2022
  • Number of updates: 29
  • Update frequency: every 77.1 days
  • Top authors: powr (100%)

Code review

54 tests

User reviews

58 reviews

Install metrics

3,000+ active /75,621 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.21MB] [CPU: ▼11.81ms] Passed 4 tests

A check of server-side resources used by Contact Form - Custom Builder, Payment Form, and More
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.91 ▲1.93
Dashboard /wp-admin3.36 ▲0.0644.33 ▼4.73
Posts /wp-admin/edit.php3.47 ▲0.1250.87 ▲1.68
Add New Post /wp-admin/post-new.php4.87 ▼1.0150.15 ▼44.02
Media Library /wp-admin/upload.php3.28 ▲0.0633.61 ▼0.18

Server storage [IO: ▲2.30MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 148 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
powr_token
powr_install_time
widget_recent-comments
db_upgraded
widget_powr_powr_pack
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Contact Form - Custom Builder, Payment Form, and More: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12413.41 ▼0.867.06 ▲5.1838.12 ▼1.91
Dashboard /wp-admin2,229 ▲444.92 ▼0.9694.65 ▼3.9171.92 ▲29.15
Posts /wp-admin/edit.php2,112 ▲262.01 ▲0.0140.29 ▲3.2435.27 ▲3.11
Add New Post /wp-admin/post-new.php6,212 ▲4,69819.69 ▲2.01937.20 ▲244.3339.27 ▼9.88
Media Library /wp-admin/upload.php1,411 ▲204.22 ▲0.05111.01 ▲9.3850.83 ▲5.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • powr_token
    • widget_powr_powr_pack
    • widget_recent-comments
    • powr_install_time

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× 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/powr-pack/src/pack.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: contact form, popup, instagram feed, countdown timer, form

powr-pack/plugin.php 85% from 13 tests

The principal PHP file in "Contact Form - Custom Builder, Payment Form, and More" v. 2.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("powr-pack.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 205 characters long)

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
There were no executable files found in this plugin15,982 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript65131558,652
JSON2006,902
PHP32583323
SVG570057
Sass33140
CSS4008

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.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
6 PNG files occupy 0.40MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/images/icon-128x128.png10.97KB5.44KB▼ 50.43%
powr-icon.png0.35KB0.21KB▼ 39.78%
src/images/powr-icon.png0.35KB0.21KB▼ 39.78%
src/images/icon-256x256.png31.17KB15.40KB▼ 50.59%
src/images/banner-772x250.png60.82KB22.95KB▼ 62.27%