84% wangguard-limited-registration-domain-add-on

Code Review | WangGuard Limited Registration Domain Add-On

WordPress plugin WangGuard Limited Registration Domain Add-On scored84%from 54 tests.

About plugin

  • Plugin page: wangguard-limited...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Apr 22, 2014
  • Latest release: Jun 7, 2016
  • Number of updates: 6
  • Update frequency: every 129.7 days
  • Top authors: j.conti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,043 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
The plugin installed gracefully, with no errors

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

Server-side resources used by WangGuard Limited Registration Domain Add-On
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.35 ▼1.89
Dashboard /wp-admin3.31 ▲0.0148.84 ▼10.50
Posts /wp-admin/edit.php3.36 ▲0.0150.37 ▲1.81
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.65 ▼10.63
Media Library /wp-admin/upload.php3.24 ▲0.0137.76 ▲1.42

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WangGuard Limited Registration Domain Add-On
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.37 ▼1.001.95 ▲0.3042.47 ▼0.60
Dashboard /wp-admin2,218 ▲305.86 ▼0.04101.95 ▼11.3141.85 ▼0.55
Posts /wp-admin/edit.php2,098 ▲62.01 ▲0.0034.43 ▼8.7936.43 ▼1.68
Add New Post /wp-admin/post-new.php1,543 ▲2923.48 ▲5.80689.81 ▼21.9061.67 ▲3.61
Media Library /wp-admin/upload.php1,400 ▲154.23 ▼0.01100.89 ▼10.7846.28 ▲0.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/wangguard-limited-registration-domain-add-on/wangguard-limited-registration-domain-bp.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wangguard-limited-registration-domain-add-on/wangguard-limited-registration-domain-add-on.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_option() in wp-content/plugins/wangguard-limited-registration-domain-add-on/wangguard-limited-registration-domain-wpmu.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: registration, wgg, wangguard, block domains, domains...

wangguard-limited-registration-domain-add-on/wangguard-limited-registration-domain-add-on.php 92% from 13 tests

The main PHP file in "WangGuard Limited Registration Domain Add-On" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 253 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin189 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46368189

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin