84% simple-sns-account-management

Code Review | Simple SNS Account Management

WordPress plugin Simple SNS Account Management scored84%from 54 tests.

About plugin

  • Plugin page: simple-sns-accoun...
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 18
  • Update frequency: every 37.6 days
  • Top authors: yat8823jp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,568 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.02MB] [CPU: ▼4.62ms] Passed 4 tests

An overview of server-side resources used by Simple SNS Account Management
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.23 ▲1.24
Dashboard /wp-admin3.33 ▲0.0241.49 ▼7.42
Posts /wp-admin/edit.php3.38 ▲0.0240.77 ▼14.90
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.42 ▲2.83
Media Library /wp-admin/upload.php3.25 ▲0.0235.94 ▲2.59
SNS /wp-admin/options-general.php?page=simple-sns-account-management/main.php3.2227.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simple SNS Account Management
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.61 ▼0.691.70 ▼0.5336.81 ▼14.36
Dashboard /wp-admin2,210 ▲225.84 ▼0.0697.85 ▼9.7236.36 ▼7.65
Posts /wp-admin/edit.php2,093 ▼12.06 ▲0.0839.95 ▼0.5334.60 ▼6.89
Add New Post /wp-admin/post-new.php1,536 ▲323.37 ▲0.26618.60 ▼69.1051.90 ▼2.27
Media Library /wp-admin/upload.php1,386 ▲44.21 ▼0.0095.12 ▼4.1741.40 ▼0.72
SNS /wp-admin/options-general.php?page=simple-sns-account-management/main.php8552.0326.0749.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-sns-account-management/main.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: sns

simple-sns-account-management/main.php 85% from 13 tests

The main file in "Simple SNS Account Management" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • 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
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-sns-account-management.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected102 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1918102

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin