78% ra-registration-mail-address-domain-limiter

Code Review | RA - Registration Mail Address Domain Limiter

WordPress plugin RA - Registration Mail Address Domain Limiter scored78%from 54 tests.

About plugin

  • Plugin page: ra-registration-m...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: May 14, 2015
  • Number of updates: 13
  • Update frequency: every 18.3 days
  • Top authors: skuramoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,088 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.54ms] Passed 4 tests

Analyzing server-side resources used by RA - Registration Mail Address Domain Limiter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.17 ▼1.76
Dashboard /wp-admin3.38 ▲0.0845.68 ▼2.20
Posts /wp-admin/edit.php3.50 ▲0.1444.02 ▼0.55
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.61 ▼9.54
Media Library /wp-admin/upload.php3.31 ▲0.0836.19 ▼0.64
RMADL /wp-admin/options-general.php?page=rmadl3.2526.05

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for RA - Registration Mail Address Domain Limiter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.21 ▼1.551.60 ▼0.2137.53 ▼7.12
Dashboard /wp-admin2,209 ▲274.84 ▼1.06112.68 ▼2.0542.23 ▼2.17
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.1133.64 ▼3.6132.18 ▼2.49
Add New Post /wp-admin/post-new.php1,524 ▼422.94 ▲4.92673.54 ▲50.8855.63 ▼1.17
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.0299.35 ▼2.6240.82 ▼3.94
RMADL /wp-admin/options-general.php?page=rmadl8942.0329.8031.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=rmadl
    • > Deprecated in wp-content/plugins/ra-registration-mail-address-domain-limiter/class/rmadl_settings_page.php+114
    Non-static method RMADL_Settings_Page_HTML::output_settings_html() should not be called statically

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/ra-registration-mail-address-domain-limiter/ra-mail-domain-limiter.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: userregister, japanese, email, rains

ra-registration-mail-address-domain-limiter/ra-mail-domain-limiter.php 77% from 13 tests

Analyzing the main PHP file in "RA - Registration Mail Address Domain Limiter" version 1.2.8
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 165 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("ra-registration-mail-address-domain-limiter.php" instead of "ra-mail-domain-limiter.php")

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
No dangerous file extensions were detected419 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP514687299
PO File1282772
CSS14048

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity15.40
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods22
▷ Static methods836.36%
▷ Public methods1986.36%
▷ Protected methods313.64%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin