78% user-activation-validate

Code Review | User Activation Validate

WordPress plugin User Activation Validate scored78%from 54 tests.

About plugin

  • Plugin page: user-activation-v...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Dec 29, 2021
  • Latest release: Dec 30, 2021
  • Number of updates: 5
  • Update frequency: every 130.6 days
  • Top authors: codemanas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /359 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.20ms] Passed 4 tests

This is a short check of server-side resources used by User Activation Validate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.56 ▼2.41
Dashboard /wp-admin3.43 ▲0.1347.92 ▼4.53
Posts /wp-admin/edit.php3.55 ▲0.1951.69 ▲0.23
Add New Post /wp-admin/post-new.php6.03 ▲0.1584.90 ▼11.70
Media Library /wp-admin/upload.php3.35 ▲0.1336.78 ▼2.16
User Activation Validate /wp-admin/users.php?page=uav3.3232.38

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by User Activation Validate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.081.69 ▼0.1746.79 ▲2.73
Dashboard /wp-admin2,202 ▲255.62 ▼0.0389.05 ▼8.1838.83 ▼4.85
Posts /wp-admin/edit.php2,101 ▲12.00 ▼0.0235.37 ▼5.7134.17 ▼4.46
Add New Post /wp-admin/post-new.php1,529 ▲323.08 ▼0.03679.47 ▼29.1664.72 ▲12.72
Media Library /wp-admin/upload.php1,401 ▲14.16 ▼0.03101.47 ▼7.6643.60 ▼2.11
User Activation Validate /wp-admin/users.php?page=uav7822.0224.7324.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/user-activation-validate/language/index.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UavSH() in wp-content/plugins/user-activation-validate/views/users.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/user-activation-validate/includes/UavTable.php:12
    • > PHP Notice
      Trying to get property 'users' of non-object in wp-content/plugins/user-activation-validate/views/users.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-activation-validate/includes/bootstrap.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (User Activate Validate default page)
The official readme.txt might help

user-activation-validate/user-activation-validate.php 92% from 13 tests

The main PHP file in "User Activation Validate" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected933 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP15214352824
JavaScript1207108
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.29
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods52
▷ Static methods611.54%
▷ Public methods5096.15%
▷ Protected methods11.92%
▷ Private methods11.92%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot.png120.44KB41.72KB▼ 65.36%
assets/help-icon.png1.18KB1.23KB0.00%