83% custom-registration

Code Review | Custom Registration

WordPress plugin Custom Registration scored83%from 54 tests.

About plugin

  • Plugin page: custom-registration
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2015
  • Latest release: Feb 11, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: burakkaptan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /1,942 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Custom Registration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.56 ▲1.00
Dashboard /wp-admin3.32 ▲0.0154.84 ▼3.88
Posts /wp-admin/edit.php3.37 ▲0.0155.21 ▲7.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.56 ▼4.12
Media Library /wp-admin/upload.php3.24 ▲0.0139.01 ▲0.13

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Custom Registration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.59 ▼0.792.25 ▲0.4644.15 ▼3.79
Dashboard /wp-admin2,211 ▲264.88 ▼0.98111.74 ▼10.1141.30 ▼7.29
Posts /wp-admin/edit.php2,094 ▲22.03 ▲0.0138.62 ▼5.7134.84 ▼3.69
Add New Post /wp-admin/post-new.php1,530 ▲1621.08 ▲3.48706.57 ▼48.2956.51 ▼0.19
Media Library /wp-admin/upload.php1,393 ▲114.24 ▲0.02109.72 ▼8.6348.74 ▼4.04

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
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-registration/cr.php:22

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

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === custom-registration === )
  • Screenshots: Screenshot #1 (Plugin appearance) image required
The official readme.txt might help

custom-registration/cr.php 92% from 13 tests

Analyzing the main PHP file in "Custom Registration" version 1.0
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-registration.php" instead of "cr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin56 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1471553
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin