78% wp-register-profile-with-shortcode

Code Review | WP Register Profile With Shortcode

WordPress plugin WP Register Profile With Shortcode scored 78% from 54 tests.

About plugin

  • Plugin page: wp-register-profi...
  • Plugin version: 3.5.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 2, 2014
  • Latest release: Sep 20, 2023
  • Number of updates: 126
  • Update frequency: every 26.7 days
  • Top authors: avi.megladon (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

700+ active / 61,794 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.23MB] [CPU: ▼2.75ms] Passed 4 tests

An overview of server-side resources used by WP Register Profile With Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2337.20 ▼5.34
Dashboard /wp-admin3.53 ▲0.2354.26 ▲4.91
Posts /wp-admin/edit.php3.64 ▲0.2951.07 ▲4.47
Add New Post /wp-admin/post-new.php6.13 ▲0.2488.72 ▼11.86
Media Library /wp-admin/upload.php3.45 ▲0.2235.62 ▲1.72

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_recent-comments
new_user_register_mail_body
new_user_register_mail_subject
widget_register_wid
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Register Profile With Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲17213.80 ▼0.765.99 ▲4.2539.70 ▲2.02
Dashboard /wp-admin2,225 ▲405.82 ▼0.06104.74 ▲4.6335.17 ▼13.05
Posts /wp-admin/edit.php2,111 ▲222.04 ▲0.0741.11 ▲4.5734.55 ▲3.71
Add New Post /wp-admin/post-new.php1,533 ▼123.07 ▼0.01641.48 ▼20.4836.96 ▼24.81
Media Library /wp-admin/upload.php1,410 ▲224.28 ▲0.0994.84 ▼17.9239.33 ▼7.71

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-register-profile-with-shortcode/captcha/captcha_admin.php
    • > /wp-content/plugins/wp-register-profile-with-shortcode/captcha/captcha.php
    • > /wp-content/plugins/wp-register-profile-with-shortcode/view/admin/register-add.php
    • > /wp-content/plugins/wp-register-profile-with-shortcode/view/admin/login-add.php
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-register-profile-with-shortcode/register.php on line 34
    • > PHP Fatal error
      Uncaught Error: Class 'Form_Class' not found in wp-content/plugins/wp-register-profile-with-shortcode/view/admin/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wp-register-profile-with-shortcode/register.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-register-profile-with-shortcode/view/admin/help-support.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-register-profile-with-shortcode/view/frontend/register.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-register-profile-with-shortcode/view/admin/donate.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-register-profile-with-shortcode/view/frontend/update-password.php:1
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-register-profile-with-shortcode/register.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-register-profile-with-shortcode/view/admin/captcha.php:2
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-register-profile-with-shortcode/register.php on line 34

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

wp-register-profile-with-shortcode/register.php 92% from 13 tests

The entry point to "WP Register Profile With Shortcode" version 3.5.9 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-register-profile-with-shortcode.php" instead of "register.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,998 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP272421501,710
JavaScript4130394657
PO File92300518
CSS254113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.08
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods68
▷ Static methods1116.18%
▷ Public methods6798.53%
▷ Protected methods00.00%
▷ Private methods11.47%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants2
▷ Global constants2100.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rss.png0.60KB0.50KB▼ 16.18%
images/paypal.png0.77KB0.80KB0.00%