10% gna-korean-sns

Code Review | GNA Korean SNS

WordPress plugin GNA Korean SNS scored10%from 54 tests.

About plugin

  • Plugin page: gna-korean-sns
  • Plugin version: 0.9.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 6.3.1
  • First release: Jan 14, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 18
  • Update frequency: every 18.6 days
  • Top authors: chris_dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,293 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_KoreanSNS::activate_handler() should not be called statically

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.34ms] Passed 4 tests

A check of server-side resources used by GNA Korean SNS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.83 ▲2.72
Dashboard /wp-admin3.36 ▲0.0547.36 ▼5.39
Posts /wp-admin/edit.php3.47 ▲0.1148.69 ▼6.10
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.92 ▼4.60
Media Library /wp-admin/upload.php3.28 ▲0.0539.23 ▲5.66

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for GNA Korean SNS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.13 ▼0.432.01 ▲0.3341.80 ▲0.68
Dashboard /wp-admin2,195 ▲185.63 ▼0.0190.10 ▼3.1971.96 ▲32.34
Posts /wp-admin/edit.php2,115 ▲151.97 ▼0.1237.32 ▲1.7336.48 ▲2.72
Add New Post /wp-admin/post-new.php1,553 ▲2522.97 ▼0.31729.85 ▲114.5858.07 ▼18.17
Media Library /wp-admin/upload.php1,412 ▲124.23 ▲0.0995.15 ▼8.3071.39 ▲25.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_KoreanSNS::deactivate_handler() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'GNA_KoreanSNS_Admin_Menu' not found in wp-content/plugins/gna-korean-sns/admin/gna-korean-sns-admin-settings-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gna-korean-sns/inc/gna-korean-sns-config.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Donate link: Invalid URI ("none")
You can look at the official readme.txt

gna-korean-sns/gna-korean-sns.php Passed 13 tests

The main PHP file in "GNA Korean SNS" ver. 0.9.7 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
Sharing your post via Korean SNS such as Kakao Talk, Naver Line, Naver Blog, Facebook, Twitter and so on.

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
Good job! No executable or dangerous file extensions detected380 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP67137334
CSS14046

PHP code Passed 2 tests

This is a short overview 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.20
Average class complexity5.20
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods47
▷ Static methods48.51%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/gna_20x20.png2.98KB0.33KB▼ 88.89%