83% user-register-filter

Code Review | User Register Filter

WordPress plugin User Register Filter scored83%from 54 tests.

About plugin

  • Plugin page: user-register-filter
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7.4
  • WordPress version: 6.3.1
  • First release: Mar 12, 2017
  • Latest release: May 16, 2017
  • Number of updates: 20
  • Update frequency: every 3.0 days
  • Top authors: tibletech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,065 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.85ms] Passed 4 tests

Server-side resources used by User Register Filter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.13 ▼1.78
Dashboard /wp-admin3.31 ▲0.0158.08 ▲1.52
Posts /wp-admin/edit.php3.36 ▲0.0153.68 ▼4.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.94 ▼21.77
Media Library /wp-admin/upload.php3.24 ▲0.0136.04 ▲0.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for User Register Filter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.30 ▼0.361.79 ▼0.2839.81 ▼3.88
Dashboard /wp-admin2,211 ▲345.61 ▲0.0892.41 ▼8.3741.15 ▼2.97
Posts /wp-admin/edit.php2,116 ▲192.03 ▲0.0436.46 ▼2.6930.09 ▼4.77
Add New Post /wp-admin/post-new.php1,539 ▲1323.47 ▲0.40701.04 ▲49.4152.08 ▼5.99
Media Library /wp-admin/upload.php1,413 ▲134.30 ▲0.0695.64 ▼4.7041.92 ▼2.32

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/user-register-filter/tt-user-register-filter.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === user-register-filter === )
Please take inspiration from this readme.txt

user-register-filter/tt-user-register-filter.php 69% from 13 tests

This is the main PHP file of "User Register Filter" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("user-register-filter.php" instead of "tt-user-register-filter.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)

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 plugin85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1402985

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin