10% register-here

Code Review | Register here!

WordPress plugin Register here! scored10%from 54 tests.

About plugin

  • Plugin page: register-here
  • Plugin version: 0.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Feb 26, 2014
  • Latest release: Dec 25, 2014
  • Number of updates: 12
  • Update frequency: every 25.6 days
  • Top authors: Pierre Husted Sigvardsen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,356 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/register-here/register-here.php+93
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.35ms] Passed 4 tests

An overview of server-side resources used by Register here!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.08 ▲0.69
Dashboard /wp-admin3.31 ▲0.0044.90 ▼3.31
Posts /wp-admin/edit.php3.36 ▲0.0041.29 ▼10.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.72 ▼7.66
Media Library /wp-admin/upload.php3.23 ▲0.0033.95 ▲0.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: 2 new tables, 7 new options
New tables
wp_reghere_group
wp_reghere_participant
New WordPress options
register_here_db_version
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Register here!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.16 ▼0.191.67 ▼0.2744.20 ▲3.90
Dashboard /wp-admin2,198 ▲215.64 ▼0.0393.31 ▲10.1741.58 ▼1.31
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0532.74 ▼2.3836.10 ▲2.62
Add New Post /wp-admin/post-new.php1,526 ▼023.23 ▼0.14663.25 ▼18.3251.08 ▼10.41
Media Library /wp-admin/upload.php1,400 ▲34.13 ▼0.1495.27 ▼5.6743.75 ▼2.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_reghere_participant
    • wp_reghere_group
  • This plugin does not fully uninstall, leaving 7 options in the database
    • register_here_db_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/register-here/register-here-admin.php:10
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/register-here/register-here-globals.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/register-here/register-here-globals.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function reghere_log_me() in wp-content/plugins/register-here/register-here-database.php:15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/register-here/register-here-globals.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/register-here/register-here-globals.php:12

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 81% 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:
  • Screenshots: Add images for these screenshots: #1 (The registration form: register-here--registration-form.png), #2 (The list of participants: register-here--participants-list.png), #3 (The settings-panel show the extra fields: register-here--settings-extra-fields.png)
  • Plugin Name: You should set the name of your plugin on the first line ( === register-here === )
  • Donate link: Please fix this invalid url: "none"
The official readme.txt is a good inspiration

register-here/register-here.php Passed 13 tests

The entry point to "Register here!" version 0.3.0 is a PHP file that has certain tags in its header comment area
24 characters long description:
Registration for events.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin939 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4303211800
PO File160136139

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
3 compressed PNG files occupy 0.06MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/register-here--registration-form.png11.79KB10.65KB▼ 9.62%
screenshots/register-here--participants-list.png21.56KB20.93KB▼ 2.92%
screenshots/register-here--settings-extra-fields.png28.65KB28.04KB▼ 2.14%