78% mshop-naver-talktalk

Code Review | 코드엠샵 소셜톡

WordPress plugin 코드엠샵 소셜톡 scored78%from 54 tests.

About plugin

  • Plugin page: mshop-naver-talktalk
  • Plugin version: 1.1.16
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jul 27, 2023
  • Number of updates: 61
  • Update frequency: every 36.5 days
  • Top authors: codemstory (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /10,032 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.10MB] [CPU: ▼2.77ms] Passed 4 tests

Analyzing server-side resources used by 코드엠샵 소셜톡
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.25 ▼7.12
Dashboard /wp-admin3.40 ▲0.1047.43 ▲3.05
Posts /wp-admin/edit.php3.52 ▲0.1647.81 ▲2.19
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.48 ▼9.21
Media Library /wp-admin/upload.php3.33 ▲0.0937.61 ▲5.17

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for 코드엠샵 소셜톡
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲4013.69 ▼0.671.57 ▼0.7240.15 ▲1.02
Dashboard /wp-admin2,217 ▲295.85 ▲0.0099.59 ▼8.1483.97 ▲36.84
Posts /wp-admin/edit.php2,100 ▲141.97 ▼0.0539.75 ▲0.4639.41 ▲3.04
Add New Post /wp-admin/post-new.php1,687 ▲14524.53 ▲6.34680.17 ▲59.0258.49 ▲6.85
Media Library /wp-admin/upload.php1,402 ▲174.20 ▼0.0298.19 ▼4.6279.08 ▲34.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% 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 0% 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
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/mshop-naver-talktalk/templates/naver_talktalk_button.php
    • > /wp-content/plugins/mshop-naver-talktalk/templates/naver_talktalk_banner.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/mshop-naver-talktalk/includes/admin/setting-manager/mshop-setting-helper.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mshop-naver-talktalk/templates/kakao_talktalk_button.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mshop-naver-talktalk/templates/kakao_talktalk_banner.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mshop-naver-talktalk/templates/open_graph.php:5
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/mshop-naver-talktalk/includes/admin/setting-manager/mshop-setting-helper.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mshop-naver-talktalk/includes/admin/setting-manager/mshop-setting-helper.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No plugin tags provided

mshop-naver-talktalk/mshop-naver-talktalk.php 92% from 13 tests

The entry point to "코드엠샵 소셜톡" version 1.1.16 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

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
Everything looks great! No dangerous files found in this plugin2,204 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
SVG3301,212
PHP1513414966
JavaScript20025
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity12.22
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods45
▷ Static methods3066.67%
▷ Public methods4497.78%
▷ Protected methods00.00%
▷ Private methods12.22%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
74 PNG files occupy 0.62MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/plusfriend_btn/question_large_mono_mobile_2X.png17.25KB7.20KB▼ 58.29%
assets/images/plusfriend_btn/friendadd_large_black_round_3X.png11.78KB4.90KB▼ 58.37%
assets/images/plusfriend_btn/friendadd_small_black_round_3X.png7.48KB3.25KB▼ 56.63%
assets/images/plusfriend_btn/consult_large_yellow_mobile_2X.png11.42KB5.40KB▼ 52.68%
assets/images/plusfriend_btn/consult_small_yellow_pc_3X.png10.04KB5.05KB▼ 49.68%