83% disable-registration-page

Code Review | Disable Registration Page

WordPress plugin Disable Registration Page scored 83% from 54 tests.

About plugin

  • Plugin page: disable-registrat...
  • Plugin version: 1.1.0
  • PHP compatiblity: 4.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 17, 2018
  • Latest release: Feb 19, 2018
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: Petrichorpost (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 2,508 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Disable Registration Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.61 ▼3.19
Dashboard /wp-admin3.31 ▲0.0146.53 ▼2.94
Posts /wp-admin/edit.php3.36 ▲0.0148.88 ▲6.65
Add New Post /wp-admin/post-new.php5.89 ▲0.01120.69 ▲32.54
Media Library /wp-admin/upload.php3.23 ▲0.0133.50 ▼0.79

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Disable Registration Page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲2514.45 ▲0.201.98 ▲0.0144.33 ▲2.34
Dashboard /wp-admin2,206 ▼35.89 ▲0.0499.90 ▼0.1542.85 ▲2.22
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0140.64 ▲4.3739.09 ▲2.87
Add New Post /wp-admin/post-new.php1,532 ▲1123.42 ▲0.12678.43 ▼14.7160.04 ▲0.18
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0596.22 ▼28.5344.66 ▼8.17

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/disable-registration-page/disable-registration-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Default WordPress registration page disabled!) image missing
You can look at the official readme.txt

disable-registration-page/disable-registration-page.php 85% from 13 tests

This is the main PHP file of "Disable Registration Page" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • 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")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1311846

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.14KB7.58KB▼ 46.42%