10% daumview

Code Review | DaumView

WordPress plugin DaumView scored10%from 54 tests.

About plugin

  • Plugin page: daumview
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.8
  • WordPress version: 6.3.1
  • First release: Dec 15, 2012
  • Latest release: Apr 26, 2014
  • Number of updates: 31
  • Update frequency: every 16.1 days
  • Top authors: qnibus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,980 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/daumview/widgets/daumview_myview_widget.php+8
    Methods with the same name as their class will not be constructors in a future version of PHP; QB_Myview_Widget has a deprecated constructor

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

Analyzing server-side resources used by DaumView
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.23 ▼33.37
Dashboard /wp-admin2.17 ▼1.146.85 ▼42.17
Posts /wp-admin/edit.php2.17 ▼1.195.83 ▼42.59
Add New Post /wp-admin/post-new.php2.17 ▼3.725.80 ▼85.81
Media Library /wp-admin/upload.php2.17 ▼1.067.09 ▼27.49

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_qb_myview_widget
theysaidso_admin_options
qnibus_daumview
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

DaumView: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,783 ▼314.24 ▼0.311.86 ▲0.0943.32 ▲2.43
Dashboard /wp-admin2,196 ▲265.54 ▼0.0785.40 ▼22.8237.27 ▼3.25
Posts /wp-admin/edit.php2,101 ▲11.97 ▼0.0135.43 ▼3.8335.05 ▲1.03
Add New Post /wp-admin/post-new.php6,221 ▲4,69518.76 ▼4.70899.51 ▲215.3068.34 ▲0.81
Media Library /wp-admin/upload.php1,398 ▼54.21 ▲0.0299.43 ▼4.3542.93 ▼2.85
DaumView /wp-admin/daumview.php260.420.0814.68

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
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/daumview/widgets/daumview_myview_widget.php+8
    Methods with the same name as their class will not be constructors in a future version of PHP; QB_Myview_Widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • qnibus_daumview
    • widget_qb_myview_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Trying to get property 'category_eng_name' of non-object in wp-content/plugins/daumview/daumview_meta_info_box.php on line 15
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/daumview/daumview_meta_select_box.php on line 5
    • > PHP Notice
      Undefined variable: newsinfo in wp-content/plugins/daumview/daumview_meta_info_box.php on line 23
    • > PHP Notice
      Trying to get property 'reg_date' of non-object in wp-content/plugins/daumview/daumview_meta_info_box.php on line 10
    • > PHP Notice
      Trying to get property 'post_title' of non-object in wp-content/plugins/daumview/daumview_meta_select_box.php on line 16
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/daumview/daumview_meta_info_box.php on line 6
    • > PHP Notice
      Undefined variable: values in wp-content/plugins/daumview/daumview_meta_select_box.php on line 16
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/daumview/daumview_meta_info_box.php:27
    • > PHP Notice
      Undefined variable: category in wp-content/plugins/daumview/daumview_meta_select_box.php on line 5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/daumview/daumview_admin_settings.php:6

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 require attention:
  • Screenshots: These screenshots do not have images: #1 (관리자 설정 페이지 (인증 전)), #2 (관리자 설정 페이지 (인증 후)), #3 (포스팅 메타 박스 (송고 전)), #4 (포스팅 메타 박스 (송고 후)), #5 (컨텐츠 및 위젯 출력), #6 (위젯 설정 화면)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === daumview === )
Please take inspiration from this readme.txt

daumview/daumview.php 92% from 13 tests

The principal PHP file in "DaumView" v. 1.8 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 241 characters long)

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
No dangerous file extensions were detected967 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8101146578
XML100389

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.45
Average class complexity17.80
▷ Minimum class complexity3.00
▷ Maximum class complexity43.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods3090.91%
▷ Protected methods00.00%
▷ Private methods39.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 1.09MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/daumview_normal.png5.68KB1.63KB▼ 71.33%
screenshot-6.png142.11KB49.67KB▼ 65.05%
screenshot-4.png185.56KB61.85KB▼ 66.67%
images/daumview_box.png13.54KB4.61KB▼ 65.97%
screenshot-1.png91.83KB26.83KB▼ 70.79%