83% ultimate-member-addon-to-enable-frontend-validations

Code Review | Ultimate member addon to enable frontend validations

WordPress plugin Ultimate member addon to enable frontend validations scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-member-a...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: May 9, 2023
  • Latest release: Jun 9, 2023
  • Number of updates: 14
  • Update frequency: every 3.0 days
  • Top authors: shabbarodes (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.08ms] Passed 4 tests

A check of server-side resources used by Ultimate member addon to enable frontend validations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.46 ▲4.75
Dashboard /wp-admin3.33 ▲0.0351.46 ▲1.61
Posts /wp-admin/edit.php3.45 ▲0.0948.77 ▼1.88
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.39 ▼14.54
Media Library /wp-admin/upload.php3.26 ▲0.0337.56 ▼1.51

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate member addon to enable frontend validations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.25 ▼0.091.84 ▲0.1142.98 ▼4.06
Dashboard /wp-admin2,189 ▲85.55 ▼0.2186.27 ▼16.6743.67 ▲0.28
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0537.87 ▼6.2732.09 ▼2.16
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▲0.21706.20 ▲49.6153.63 ▼4.06
Media Library /wp-admin/upload.php1,400 ▼34.17 ▲0.01107.47 ▲2.4048.81 ▲6.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ultimate-member-addon-to-enable-frontend-validations/ultimate-member-frontend-validations.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === ultimate-member-addon-to-enable-frontend-validations === )
You can take inspiration from this readme.txt

ultimate-member-addon-to-enable-frontend-validations/ultimate-member-frontend-validations.php 69% from 13 tests

The primary PHP file in "Ultimate member addon to enable frontend validations" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-member-addon-to-enable-frontend-validations.php" instead of "ultimate-member-frontend-validations.php")

Code Analysis Passed 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
No dangerous file extensions were detected337 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
XML400162
PHP45082147
Markdown112028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.33
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods19
▷ Static methods15.26%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin