10% blaatlogin-base

Code Review | BlaatLogin Base

WordPress plugin BlaatLogin Base scored10%from 54 tests.

About plugin

  • Plugin page: blaatlogin-base
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 18, 2015
  • Latest release: May 18, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: GromBeestje (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /913 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/blaatlogin-base/classes/BlaatLoginService.class.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; BlaatLoginService has a deprecated constructor

Server metrics [RAM: ▼5.35MB] [CPU: ▼780,581.13ms] Passed 4 tests

A check of server-side resources used by BlaatLogin Base
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /19.25 ▲15.743,129,563.59 ▲3,129,519.07
Dashboard /wp-admin2.61 ▼16.637.14 ▼3,122,158.85
Posts /wp-admin/edit.php2.61 ▼0.798.29 ▼42.71
Add New Post /wp-admin/post-new.php2.61 ▼3.329.57 ▼93.78
Media Library /wp-admin/upload.php2.61 ▼0.667.29 ▼29.19

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables
wp_bs_login_generic_options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for BlaatLogin Base
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.251.79 ▲0.0544.83 ▲2.85
Dashboard /wp-admin2,189 ▲125.62 ▼0.05105.77 ▲7.9647.72 ▲1.52
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0340.48 ▲6.0537.98 ▲4.39
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.52664.85 ▼48.8863.96 ▲2.52
Media Library /wp-admin/upload.php1,397 ▼04.16 ▼0.03106.06 ▼0.6446.35 ▼4.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/blaatlogin-base/classes/BlaatLoginService.class.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; BlaatLoginService has a deprecated constructor
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_bs_login_generic_options
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blaatlogin-base/bsauth.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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: authentication, sso

blaatlogin-base/bsauth.php 92% from 13 tests

The entry point to "BlaatLogin Base" version 0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blaatlogin-base.php" instead of "bsauth.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,014 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6243130989
CSS22023
Markdown1002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity39.00
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity7.61
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected