78% korea-sns

Code Review | Korea SNS

WordPress plugin Korea SNS scored 78% from 54 tests.

About plugin

  • Plugin page: korea-sns
  • Plugin version: 1.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2014
  • Latest release: Sep 7, 2022
  • Number of updates: 57
  • Update frequency: every 50.5 days
  • Top authors: Jongmyoung Kim (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active / 59,671 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
Install script ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼18.90ms] Passed 4 tests

An overview of server-side resources used by Korea SNS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.69 ▼10.82
Dashboard /wp-admin3.38 ▲0.0747.70 ▼10.26
Posts /wp-admin/edit.php3.43 ▲0.0749.86 ▼0.46
Add New Post /wp-admin/post-new.php4.67 ▼1.2244.87 ▼54.07
Media Library /wp-admin/upload.php3.30 ▲0.0740.45 ▲3.48
Korea SNS /wp-admin/options-general.php?page=kon_tergos_options3.2633.10

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
kon_tergos

Browser metrics Passed 4 tests

This is an overview of browser requirements for Korea SNS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19114.20 ▼0.167.14 ▲5.1436.32 ▼11.45
Dashboard /wp-admin2,210 ▲224.86 ▼0.03100.25 ▲0.8342.03 ▼13.34
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0639.29 ▼3.1531.80 ▼10.01
Add New Post /wp-admin/post-new.php1,540 ▲623.12 ▲0.05657.56 ▼23.3157.74 ▼7.01
Media Library /wp-admin/upload.php1,389 ▼24.13 ▼0.0495.03 ▼6.2243.85 ▼2.10
Korea SNS /wp-admin/options-general.php?page=kon_tergos_options1,0852.0527.4827.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/korea-sns/uninstall.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/korea-sns/korea_sns.php:25

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === korea-sns === )
You can take inspiration from this readme.txt

korea-sns/korea_sns.php 85% from 13 tests

The main PHP script in "Korea SNS" version 1.6.3 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 279 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("korea-sns.php" instead of "korea_sns.php")

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
There were no executable files found in this plugin621 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP38124390
JavaScript1160121
PO File130078
CSS110032

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions11
▷ Named functions11100.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
16 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/b_telegram.png2.01KB1.03KB▼ 48.54%
icons/b_kakaotalk.png1.76KB0.78KB▼ 55.88%
icons/telegram.png2.18KB1.63KB▼ 25.08%
icons/facebook.png1.06KB0.33KB▼ 68.45%
icons/b_twitter.png2.36KB1.28KB▼ 45.82%