83% login-with-bondhumohal-network

Code Review | Login with Bondhumohal Network - India Ka Social Network - Social Login Plugin for Bondhumohal Network

WordPress plugin Login with Bondhumohal Network - India Ka Social Network - Social Login Plugin for Bondhumohal Network scored83%from 54 tests.

About plugin

  • Plugin page: login-with-bondhu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 10, 2020
  • Latest release: Jun 10, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: senindiaonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Login with Bondhumohal Network - India Ka Social Network - Social Login Plugin for Bondhumohal Network
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.89 ▼1.62
Dashboard /wp-admin3.36 ▲0.0648.21 ▼0.88
Posts /wp-admin/edit.php3.48 ▲0.1249.81 ▼4.69
Add New Post /wp-admin/post-new.php5.96 ▲0.0890.56 ▼9.29
Media Library /wp-admin/upload.php3.29 ▲0.0637.88 ▼4.49

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Login with Bondhumohal Network - India Ka Social Network - Social Login Plugin for Bondhumohal Network
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.25 ▼1.054.49 ▲2.6742.90 ▼1.39
Dashboard /wp-admin2,229 ▲415.86 ▼0.02107.31 ▲0.4781.26 ▲39.79
Posts /wp-admin/edit.php2,109 ▲202.03 ▲0.0335.91 ▼4.5134.95 ▼2.92
Add New Post /wp-admin/post-new.php1,532 ▲1217.62 ▼5.29733.18 ▲93.5353.74 ▼1.83
Media Library /wp-admin/upload.php1,402 ▲114.25 ▲0.04102.67 ▲0.5580.98 ▲32.46

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

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× 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/login-with-bondhumohal-network/classes/bondhumohaladmin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/login-with-bondhumohal-network/classes/bondhumohal.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/login-with-bondhumohal-network/bondhumohal.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires php: The plugin version is formatted incorrectly
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

login-with-bondhumohal-network/bondhumohal.php 69% from 13 tests

The main PHP script in "Login with Bondhumohal Network - India Ka Social Network - Social Login Plugin for Bondhumohal Network" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Plugin Name: A shorter plugin name is better (currently 102 characters long instead of max. 70)
  • Description: Keep the plugin description shorter than 140 characters (currently 261 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("login-with-bondhumohal-network.php" instead of "bondhumohal.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected357 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP361123282
CSS12351
JavaScript16324

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity15.00
▷ Minimum class complexity11.00
▷ Maximum class complexity19.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/button-wrapper.png3.27KB1.60KB▼ 50.97%
assets/images/bondhumohal-icon.png0.86KB0.61KB▼ 29.43%
assets/images/login-with-bondhumohal-wordpress-plugin.png117.53KB47.61KB▼ 59.49%
assets/images/bondhumohal.png2.39KB1.54KB▼ 35.74%