58% naver-syndication

Code Review | Naver Syndication

WordPress plugin Naver Syndication scored58%from 54 tests.

About plugin

  • Plugin page: naver-syndication
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: Jun 10, 2014
  • Latest release: Jun 11, 2014
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: qnibus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,280 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲2.43ms] Passed 4 tests

Server-side resources used by Naver Syndication
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.89 ▲4.41
Dashboard /wp-admin3.36 ▲0.0654.42 ▲5.49
Posts /wp-admin/edit.php3.46 ▲0.1054.92 ▲8.83
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.37 ▼6.58
Media Library /wp-admin/upload.php3.28 ▲0.0642.50 ▲6.39

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables
wp_qnibus_naversyndication
New WordPress options
qnibus_naversyndication
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Naver Syndication: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.45 ▼0.301.82 ▲0.0142.15 ▼9.90
Dashboard /wp-admin2,213 ▲254.84 ▼0.04110.13 ▼4.7343.67 ▼0.49
Posts /wp-admin/edit.php2,093 ▲42.13 ▲0.0741.69 ▲1.0336.26 ▲0.45
Add New Post /wp-admin/post-new.php1,536 ▲2222.84 ▲5.37595.64 ▼56.9655.10 ▼1.69
Media Library /wp-admin/upload.php1,389 ▲14.21 ▼0.01102.59 ▼16.4044.14 ▼3.78
Naver Syndication /wp-admin/naversyndication.php260.440.0717.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 14 files (0.16MB) in the plugin directory
    • (new file) classes/SyndicationObject.class.php
    • (new file) classes/SyndicationSite.class.php
    • (new file) classes/SyndicationChannel.class.php
    • (new file) classes/SyndicationStatus.class.php
    • (new file) classes/SyndicationPing.class.php
    • (new file) classes/SyndicationHandler.class.php
    • (new file) naversyndication_admin_settings.php
    • (new file) naversyndication.php
    • (new file) classes/SyndicationArticle.class.php
    • (new file) classes/SyndicationDeleted.class.php
    • ...
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_qnibus_naversyndication
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • qnibus_naversyndication
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'SyndicationObject' not found in wp-content/plugins/naver-syndication/classes/SyndicationSite.class.php:8
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/naver-syndication/classes/SyndicationHandler.class.php on line 21
    • > PHP Fatal error
      Uncaught Error: Class 'SyndicationObject' not found in wp-content/plugins/naver-syndication/classes/SyndicationChannel.class.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/naver-syndication/naversyndication_xml_template.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'SyndicationObject' not found in wp-content/plugins/naver-syndication/classes/SyndicationDeleted.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'SyndicationObject' not found in wp-content/plugins/naver-syndication/classes/SyndicationArticle.class.php:8
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/naver-syndication/naversyndication_admin_settings.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/naversyndication.php
    • > Network (severe)
    wp-admin/naversyndication.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (관리자 모드로 최소한의 기능만 제작되었습니다.) image missing
The official readme.txt might help

naver-syndication/naversyndication.php 92% from 13 tests

The principal PHP file in "Naver Syndication" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("naver-syndication.php" instead of "naversyndication.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,182 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP122714561,182

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.22
▷ Minimum class complexity2.00
▷ Maximum class complexity62.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods89
▷ Static methods22.25%
▷ Public methods8696.63%
▷ Protected methods00.00%
▷ Private methods33.37%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png104.21KB30.40KB▼ 70.83%