10% naver-webmaster-tool-syndication-v2

Code Review | Naver webmaster syndication v2

WordPress plugin Naver webmaster syndication v2 scored10%from 54 tests.

About plugin

  • Plugin page: naver-webmaster-t...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-4.0.0
  • WordPress version: 6.3.1
  • First release: Oct 30, 2014
  • Latest release: Nov 12, 2014
  • Number of updates: 12
  • Update frequency: every 1.1 days
  • Top authors: iamgood (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /16,194 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_lib_class.php+120
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.84MB] [CPU: ▼54.45ms] Passed 4 tests

An overview of server-side resources used by Naver webmaster syndication v2
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.67 ▼31.52
Dashboard /wp-admin2.16 ▼1.147.96 ▼43.72
Posts /wp-admin/edit.php2.16 ▼1.197.23 ▼44.65
Add New Post /wp-admin/post-new.php2.16 ▼3.726.92 ▼96.37
Media Library /wp-admin/upload.php2.16 ▼1.075.98 ▼33.05
네이버 웹문서 신디케이션v2 /wp-admin/options-general.php?page=naver-web-syndi-v22.166.14

Server storage [IO: ▲0.03MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Naver webmaster syndication v2
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.73 ▲0.181.98 ▲0.3046.63 ▲2.99
Dashboard /wp-admin2,202 ▲285.61 ▲0.0492.68 ▲0.2946.68 ▲5.57
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0839.97 ▲3.3539.52 ▼0.16
Add New Post /wp-admin/post-new.php1,531 ▼623.02 ▲4.56666.21 ▲36.1160.66 ▼8.44
Media Library /wp-admin/upload.php1,407 ▲74.15 ▼0.1695.19 ▼11.1847.68 ▼7.28
네이버 웹문서 신디케이션v2 /wp-admin/options-general.php?page=naver-web-syndi-v29621.8831.77104.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_lib_class.php+120
    Array and string offset access syntax with curly braces is deprecated
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • nwsv2_update_new_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • nwsv2_update_checktime
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Deprecated in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_lib_class.php+120
    Array and string offset access syntax with curly braces is deprecated
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Notice in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php+50
    Undefined index: m
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Notice in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php+86
    Undefined index: action
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Notice in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php+87
    Undefined index: pinglist
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Notice in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php+88
    Undefined index: syndi_api_mode
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Notice in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php+90
    Undefined index: list
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Notice in wp-content/plugins/naver-webmaster-tool-syndication-v2/class/nws_class.php+91
    Undefined index: st
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Notice in wp-content/plugins/naver-webmaster-tool-syndication-v2/include/message.php+1
    Undefined property: nws_Main_class::$Msg
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=naver-web-syndi-v2
    • > Notice in wp-content/plugins/naver-webmaster-tool-syndication-v2/include/admin_page.php+32
    Trying to access array offset on value of type bool

SRP 50% 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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo_rss() in wp-content/plugins/naver-webmaster-tool-syndication-v2/include/api.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/naver-webmaster-tool-syndication-v2/include/error_message.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/naver-webmaster-tool-syndication-v2/include/message.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/naver-webmaster-tool-syndication-v2/include/admin_page.php:5

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

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: searchengine, seo, naver, webmastertool, naver syndication...

naver-webmaster-tool-syndication-v2/index.php 92% from 13 tests

This is the main PHP file of "Naver webmaster syndication v2" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("naver-webmaster-tool-syndication-v2.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
Everything looks great! No dangerous files found in this plugin722 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP911167682
JavaScript13133
CSS1006
XML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.75
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes250.00%
Methods49
▷ Static methods12.04%
▷ Public methods4693.88%
▷ Protected methods00.00%
▷ Private methods36.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected