78% mshop-mysite

Code Review | 코드엠샵 마이사이트 - MSHOP MY SITE

WordPress plugin 코드엠샵 마이사이트 - MSHOP MY SITE scored78%from 54 tests.

About plugin

  • Plugin page: mshop-mysite
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 14, 2016
  • Latest release: Jul 24, 2023
  • Number of updates: 72
  • Update frequency: every 35.6 days
  • Top authors: codemstory (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /14,982 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.22ms] Passed 4 tests

An overview of server-side resources used by 코드엠샵 마이사이트 - MSHOP MY SITE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.64 ▲2.50
Dashboard /wp-admin3.39 ▲0.0950.56 ▲1.04
Posts /wp-admin/edit.php3.50 ▲0.1550.36 ▼0.67
Add New Post /wp-admin/post-new.php5.97 ▲0.0995.44 ▼11.74
Media Library /wp-admin/upload.php3.31 ▲0.0940.16 ▲6.64

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for 코드엠샵 마이사이트 - MSHOP MY SITE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲7714.33 ▲0.131.89 ▲0.0245.96 ▼2.03
Dashboard /wp-admin2,232 ▲555.54 ▼0.1185.29 ▼9.5473.23 ▲23.26
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.1441.14 ▲2.7632.99 ▼9.56
Add New Post /wp-admin/post-new.php1,552 ▲2423.08 ▲0.16602.98 ▼43.86168.25 ▲108.26
Media Library /wp-admin/upload.php1,414 ▲144.20 ▼0.09102.11 ▼1.0970.06 ▲22.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mshop-mysite/includes/templates/facebook_track.php
  • 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/mshop-mysite/includes/templates/google_analytics_track.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/mshop-mysite/includes/templates/kakao_track.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mshop-mysite/includes/class-msov-conversation.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/mshop-mysite/includes/templates/facebook_track.php on line 20
    • > PHP Notice
      Undefined variable: content_id in wp-content/plugins/mshop-mysite/includes/templates/facebook_track.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_total() on null in wp-content/plugins/mshop-mysite/includes/templates/facebook_thankyou.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/mshop-mysite/includes/templates/naver_conversion_thankyou.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/mshop-mysite/includes/admin/setting-manager/mshop-setting-helper.php on line 5
    • > PHP Notice
      Trying to get property 'query_vars' of non-object in wp-content/plugins/mshop-mysite/includes/templates/daum_track.php on line 3
    • > PHP Notice
      Undefined variable: content_id in wp-content/plugins/mshop-mysite/includes/templates/facebook_track.php on line 9

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

mshop-mysite/mshop-mysite.php Passed 13 tests

Analyzing the main PHP file in "코드엠샵 마이사이트 - MSHOP MY SITE" version 1.1.6
112 characters long description:
웹사이트 소유권인증, 광고 전환 기본 추적 기능을 쉽고 빠르게 이용할 수 있습니다.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,290 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
SVG3301,212
PHP1914912841
PO File285114203
JavaScript20032
CSS2032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods44
▷ Static methods2761.36%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions233.33%
▷ Anonymous functions466.67%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/mshop-icon.png0.58KB0.71KB0.00%
includes/admin/setting-manager/css/themes/default/assets/images/flags.png27.46KB29.21KB0.00%