10% badr-naver-syndication

Code Review | Naver Syndication V2

WordPress plugin Naver Syndication V2 scored10%from 54 tests.

About plugin

  • Plugin page: badr-naver-syndic...
  • Plugin version: 0.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 16, 2014
  • Latest release: Aug 10, 2014
  • Number of updates: 50
  • Update frequency: every 0.5 days
  • Top authors: badrHan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /8,149 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
    • > User deprecated in wp-includes/functions.php+5453
    Function get_all_category_ids is deprecated since version 4.0.0! Use get_terms() instead.

Server metrics [RAM: ▼1.90MB] [CPU: ▼56.98ms] Passed 4 tests

An overview of server-side resources used by Naver Syndication V2
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.11 ▲0.20
Dashboard /wp-admin2.05 ▼1.266.34 ▼48.47
Posts /wp-admin/edit.php2.05 ▼1.316.10 ▼49.48
Add New Post /wp-admin/post-new.php2.05 ▼3.846.62 ▼99.91
Media Library /wp-admin/upload.php2.05 ▼1.185.62 ▼30.04
네이버 신디케이션 /wp-admin/options-general.php?page=badr-syndication2.056.46

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

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

Browser metrics Passed 4 tests

Naver Syndication V2: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.101.61 ▼0.0638.42 ▼5.35
Dashboard /wp-admin2,199 ▲225.62 ▲0.0897.68 ▲6.5143.15 ▲7.10
Posts /wp-admin/edit.php2,104 ▲12.03 ▼0.0834.55 ▼0.9538.44 ▲2.55
Add New Post /wp-admin/post-new.php6,248 ▲4,71918.75 ▼4.44911.10 ▲248.2381.91 ▲27.79
Media Library /wp-admin/upload.php1,407 ▲74.20 ▲0.02100.43 ▼6.6546.88 ▲2.62
네이버 신디케이션 /wp-admin/options-general.php?page=badr-syndication1,2485.1564.4394.95

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
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function get_all_category_ids is deprecated since version 4.0.0! Use get_terms() instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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=badr-syndication
    • > User deprecated in wp-includes/functions.php+5453
    Function get_all_category_ids is deprecated since version 4.0.0! Use get_terms() instead.

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
The following issues need your attention
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/badr-naver-syndication/tpl/xml_error.php:3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/badr-naver-syndication/badr-syndication-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/badr-naver-syndication/badr-syndication-admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/badr-naver-syndication/badr-syndication-front.php:2
    • > PHP Notice
      Undefined variable: bResult in wp-content/plugins/badr-naver-syndication/tpl/config.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/badr-naver-syndication/badr-syndication.php:30
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/badr-naver-syndication/badr-syndication-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/badr-naver-syndication/tpl/feeds.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/badr-naver-syndication/tpl/config.php:17
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/badr-naver-syndication/badr-syndication-table.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (설정화면), #2 (동작확인), #3 (동작확인중), #4 (연동목록), #5 (링크 색인 확인), #6 (제목 색인 확인)
You can look at the official readme.txt

badr-naver-syndication/badr-syndication.php 85% from 13 tests

"Naver Syndication V2" version 0.8.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("badr-naver-syndication.php" instead of "badr-syndication.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin992 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1089105711
JavaScript23916239
CSS27242

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.17
▷ Minimum class complexity2.00
▷ Maximum class complexity43.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods57
▷ Static methods11.75%
▷ Public methods5698.25%
▷ Protected methods00.00%
▷ Private methods11.75%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png7.14KB3.09KB▼ 56.74%
screenshot-1.png20.51KB7.38KB▼ 64.00%
screenshot-6.png23.11KB10.35KB▼ 55.23%
screenshot-4.png29.41KB12.69KB▼ 56.86%
screenshot-3.png10.65KB4.38KB▼ 58.83%