83% kakao-tam

Code Review | kakao-tam

WordPress plugin kakao-tam scored83%from 54 tests.

About plugin

  • Plugin page: kakao-tam
  • Plugin version: 1.8.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Nov 6, 2022
  • Latest release: Oct 31, 2023
  • Number of updates: 31
  • Update frequency: every 11.7 days
  • Top authors: mcpelee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,096 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.46MB] [CPU: ▼26.52ms] Passed 4 tests

Analyzing server-side resources used by kakao-tam
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6912.92 ▼29.89
Dashboard /wp-admin3.41 ▲0.0646.11 ▼20.33
Posts /wp-admin/edit.php3.46 ▲0.1048.94 ▼1.67
Add New Post /wp-admin/post-new.php4.64 ▼1.2542.91 ▼54.19
Media Library /wp-admin/upload.php3.27 ▲0.0440.19 ▲3.96

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 28 new options
New WordPress options
kakaotalk_channel_add_icon
kakao_login_after_landing
kakaotalk_channel_chat_icon
kakao_login_icon_display
kakaotalk_share_icon_subset
kakaotalk_me_icon_display
kakaotalk_me_icon
kakao_login_icon
kakaostory_share_icon
kakao_login_secure_state_use
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for kakao-tam
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲11113.58 ▼0.755.85 ▲4.0139.25 ▼5.53
Dashboard /wp-admin2,206 ▲295.55 ▼0.1191.76 ▼5.3441.57 ▼5.00
Posts /wp-admin/edit.php2,114 ▲141.97 ▼0.0542.08 ▲4.3839.67 ▲2.16
Add New Post /wp-admin/post-new.php1,537 ▲1123.07 ▼0.09689.47 ▲1.3271.10 ▲20.21
Media Library /wp-admin/upload.php1,414 ▲144.22 ▼0.0195.67 ▼1.9643.10 ▼0.41

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 28 options
    • kakaotalk_share_icon_display
    • kakaostory_share_icon_display
    • widget_recent-comments
    • kakaotalk_me_icon_display
    • kakao_login_secure_state_use
    • kakao_login_after_landing
    • kakaotalk_share_icon
    • kakao_login_mapping_state_use
    • kakao_login_icon_display
    • kakaotalk_me_icon
    • ...

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
Good news, no errors were detected

SRP 50% 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 items
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'validate' not found in wp-content/plugins/kakao-tam/validateKakaoLoginAfterLanding.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'oAuthLogin' not found in wp-content/plugins/kakao-tam/oAuthLoginKakao.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'validate' not found in wp-content/plugins/kakao-tam/validateChannel.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'validate' not found in wp-content/plugins/kakao-tam/validateStoryShare.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/kakao-tam/admin-developers-setting.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'validate' not found in wp-content/plugins/kakao-tam/validateKakaoMap.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/kakao-tam/index.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'validate' not found in wp-content/plugins/kakao-tam/validateMe.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'validate' not found in wp-content/plugins/kakao-tam/validateKakaoLoginSecure.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'validate' not found in wp-content/plugins/kakao-tam/validateKakaoNavi.php:2

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Screen Shot), #2 (Kakao Login), #3 (Settings)
The official readme.txt might help

kakao-tam/index.php 85% from 13 tests

The primary PHP file in "kakao-tam" version 1.8.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("kakao-tam.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,104 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP19216611,984
CSS111065
JavaScript23055

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.80
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods114
▷ Static methods00.00%
▷ Public methods11399.12%
▷ Protected methods10.88%
▷ Private methods00.00%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants77
▷ Global constants00.00%
▷ Class constants77100.00%
▷ Public constants77100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
41 PNG files occupy 0.29MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon/consult_small_yellow_mobile_2X.png9.00KB4.47KB▼ 50.36%
icon/kakaotalk_me_btn_medium.png6.53KB2.61KB▼ 59.99%
icon/kakaotalk_me_btn_small.png3.45KB1.55KB▼ 54.98%
icon/consult_large_yellow_pc_2X.png8.17KB4.11KB▼ 49.75%
icon/consult_small_yellow_pc_2X.png6.76KB3.48KB▼ 48.51%