78% form-verification-verifybee

Code Review | All In One Form Verification

WordPress plugin All In One Form Verification scored 78% from 54 tests.

About plugin

  • Plugin page: form-verification...
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Nov 29, 2019
  • Latest release: May 24, 2021
  • Number of updates: 39
  • Update frequency: every 13.9 days
  • Top authors: verifybee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 922 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.15ms] Passed 4 tests

Analyzing server-side resources used by All In One Form Verification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.97 ▲2.35
Dashboard /wp-admin3.41 ▲0.1145.76 ▲1.72
Posts /wp-admin/edit.php3.52 ▲0.1645.02 ▲2.16
Add New Post /wp-admin/post-new.php6.01 ▲0.1285.04 ▼5.63
Media Library /wp-admin/upload.php3.33 ▲0.1049.18 ▲16.18

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for All In One Form Verification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.69 ▼0.685.24 ▲3.6627.54 ▼13.89
Dashboard /wp-admin2,236 ▲505.04 ▼0.11112.34 ▼13.5848.45 ▲2.60
Posts /wp-admin/edit.php2,116 ▲272.29 ▲0.2334.10 ▼3.3336.83 ▲6.88
Add New Post /wp-admin/post-new.php1,541 ▼123.36 ▲5.21695.51 ▲31.3840.42 ▼23.50
Media Library /wp-admin/upload.php1,421 ▲364.41 ▲0.2296.84 ▼5.3948.96 ▲6.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/form-verification-verifybee/public/partials/cn-verifying-email-public-display.php
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/form-verification-verifybee/admin/partials/cn-verifying-email-admin-display.php:50
    • > PHP Notice
      Undefined variable: cn_token in wp-content/plugins/form-verification-verifybee/admin/partials/cn-verifying-email-admin-display.php on line 28
    • > PHP Notice
      Undefined variable: cn_verification in wp-content/plugins/form-verification-verifybee/admin/partials/cn-verifying-email-admin-display.php on line 42
    • > PHP Notice
      Undefined variable: cn_verification in wp-content/plugins/form-verification-verifybee/admin/partials/cn-verifying-email-admin-display.php on line 47
    • > PHP Notice
      Undefined variable: cn_verify_widget_key in wp-content/plugins/form-verification-verifybee/admin/partials/cn-verifying-email-admin-display.php on line 34

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: spam, email verification, verification, email check, check spam...

form-verification-verifybee/cn-verifying-email.php 85% from 13 tests

The main file in "All In One Form Verification" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("form-verification-verifybee.php" instead of "cn-verifying-email.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin31,063 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
CSS162,0418518,393
JavaScript122,1411,8268,410
SVG2012,682
Sass2959755
PHP12170538433
HTML27710390

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.57
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/node_modules/sweetalert/sweetalert/example/images/vs_icon.png3.78KB2.19KB▼ 42.01%
admin/node_modules/sweetalert/sweetalert/example/images/logo_big@2x.png36.59KB10.91KB▼ 70.18%
admin/node_modules/sweetalert/sweetalert/example/images/logo_small@2x.png9.53KB3.73KB▼ 60.82%
admin/node_modules/sweetalert/sweetalert/example/images/logo_big.png16.76KB5.65KB▼ 66.32%
admin/node_modules/sweetalert/sweetalert/example/images/vs_icon@2x.png8.06KB3.51KB▼ 56.40%