83% peggy-forms

Code Review | Peggy Suite (NL) - prachtige iDeal betaalpagina's en geavanceerde formbuilder

WordPress plugin Peggy Suite (NL) - prachtige iDeal betaalpagina's en geavanceerde formbuilder scored83%from 54 tests.

About plugin

  • Plugin page: peggy-forms
  • Plugin version: 1.40.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Jan 12, 2018
  • Latest release: Jun 14, 2021
  • Number of updates: 40
  • Update frequency: every 31.3 days
  • Top authors: peggyforms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,422 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.73ms] Passed 4 tests

A check of server-side resources used by Peggy Suite (NL) - prachtige iDeal betaalpagina's en geavanceerde formbuilder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.21 ▲1.01
Dashboard /wp-admin3.40 ▲0.0649.76 ▼13.64
Posts /wp-admin/edit.php3.52 ▲0.1651.35 ▼0.73
Add New Post /wp-admin/post-new.php6.01 ▲0.1292.54 ▼21.57
Media Library /wp-admin/upload.php3.32 ▲0.1043.00 ▲5.08
Settings /wp-admin/admin.php?page=peggyFormsSettings3.3232.27
Register /wp-admin/admin.php?page=/plans3.1028.88

Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/peggy-forms/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Peggy Suite (NL) - prachtige iDeal betaalpagina's en geavanceerde formbuilder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.25 ▼1.124.80 ▲3.1444.38 ▲2.89
Dashboard /wp-admin2,250 ▲465.03 ▲0.07117.39 ▲0.5337.61 ▼9.37
Posts /wp-admin/edit.php2,129 ▲292.04 ▲0.0039.64 ▲0.3835.72 ▼1.59
Add New Post /wp-admin/post-new.php6,393 ▲4,85727.76 ▲4.30923.37 ▲230.1559.13 ▲6.04
Media Library /wp-admin/upload.php1,429 ▲324.31 ▲0.21114.49 ▲4.2548.58 ▲2.81
Settings /wp-admin/admin.php?page=peggyFormsSettings8261.6928.5528.88
Register /wp-admin/admin.php?page=/plans280.440.114.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=/plans
    • > Network (severe)
    wp-admin/admin.php?page=/plans - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
The official readme.txt is a good inspiration

peggy-forms/peggyforms.php 92% from 13 tests

"Peggy Suite (NL) - prachtige iDeal betaalpagina's en geavanceerde formbuilder" version 1.40.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("peggy-forms.php" instead of "peggyforms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin781 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP212723412
JavaScript44512242
CSS3193127

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.00
▷ Minimum class complexity2.00
▷ Maximum class complexity46.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1986.36%
▷ Protected methods14.55%
▷ Private methods29.09%
Functions15
▷ Named functions00.00%
▷ Anonymous functions15100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.39MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/tinymce/get-form.png3.86KB0.57KB▼ 85.27%
assets/img/icon-32x32.png3.82KB1.49KB▼ 60.96%
assets/img/icon-128x128.png7.65KB3.51KB▼ 54.06%
assets/img/icon-256x256.png16.70KB6.91KB▼ 58.60%
assets/img/screenshot-1.png151.73KB55.31KB▼ 63.55%