67% uproc-form-validator

Code Review | uProc for Wordpress

WordPress plugin uProc for Wordpress scored67%from 54 tests.

About plugin

  • Plugin page: uproc-form-validator
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.0
  • WordPress version: 6.3.1
  • First release: Jun 7, 2017
  • Latest release: Aug 23, 2020
  • Number of updates: 24
  • Update frequency: every 50.0 days
  • Top authors: mcolomer1975 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,509 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.78MB] [CPU: ▼50.76ms] Passed 4 tests

An overview of server-side resources used by uProc for Wordpress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.277.67 ▼30.80
Dashboard /wp-admin2.24 ▼1.1010.90 ▼51.34
Posts /wp-admin/edit.php2.24 ▼1.1110.79 ▼37.01
Add New Post /wp-admin/post-new.php2.24 ▼3.6411.59 ▼83.90
Media Library /wp-admin/upload.php2.24 ▼0.9910.16 ▼26.37
UProc for Wordpress /wp-admin/options-general.php?page=uproc_form_validator2.2410.37

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
upfvp-auth-invalid
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by uProc for Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.24 ▼0.011.80 ▲0.0643.84 ▼1.31
Dashboard /wp-admin2,211 ▲345.63 ▲0.0293.81 ▲4.0643.05 ▲3.55
Posts /wp-admin/edit.php2,114 ▲112.01 ▲0.0640.00 ▲4.8137.47 ▲0.21
Add New Post /wp-admin/post-new.php1,540 ▲1223.07 ▲0.18636.62 ▼44.0968.90 ▲15.39
Media Library /wp-admin/upload.php1,416 ▲164.13 ▼0.0495.24 ▲3.6341.41 ▼1.67
UProc for Wordpress /wp-admin/options-general.php?page=uproc_form_validator9401.9123.8828.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/uproc-form-validator/src/class-upfvp-plugin.php+170
    Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=uproc_form_validator
    • > Warning in wp-content/plugins/uproc-form-validator/src/class-upfvp-plugin.php+170
    Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=uproc_form_validator
    • > Notice in wp-content/plugins/uproc-form-validator/src/class-upfvp-plugin.php+171
    Trying to get property 'checkout' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=uproc_form_validator
    • > Notice in wp-content/plugins/uproc-form-validator/src/class-upfvp-plugin.php+171
    Trying to get property 'posted' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=uproc_form_validator
    • > Notice in wp-content/plugins/uproc-form-validator/src/class-upfvp-plugin.php+171
    Trying to access array offset on value of type null

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uproc-form-validator/plugin.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin admin page.), #2 (Free email form detection.), #3 (Wordpress install page.)
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

uproc-form-validator/plugin.php 85% from 13 tests

The main file in "uProc for Wordpress" v. 1.0.8 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:
  • Domain Path: The domain path folder was not found ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("uproc-form-validator.php" instead of "plugin.php")

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
Success! There were no dangerous files found in this plugin1,022 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13320918821
JavaScript2230183
CSS23018

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.20
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity1.51
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods101
▷ Static methods21.98%
▷ Public methods9594.06%
▷ Protected methods43.96%
▷ Private methods21.98%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/uproc_logo_298_working.png2.58KB1.56KB▼ 39.55%
assets/img/uproc_logo_298.png2.58KB1.56KB▼ 39.55%