84% daum-profile-comment

Code Review | Daum Profile Comment

WordPress plugin Daum Profile Comment scored84%from 54 tests.

About plugin

  • Plugin page: daum-profile-comment
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2014
  • Latest release: Apr 7, 2014
  • Number of updates: 2
  • Update frequency: every 10.0 days
  • Top authors: hoyajigi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.18ms] Passed 4 tests

A check of server-side resources used by Daum Profile Comment
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.00 ▼1.23
Dashboard /wp-admin3.31 ▲0.0141.57 ▼5.60
Posts /wp-admin/edit.php3.36 ▲0.0143.68 ▼4.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.56 ▼12.97
Media Library /wp-admin/upload.php3.23 ▲0.0133.03 ▼1.78

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Daum Profile Comment
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.21 ▼1.241.94 ▲0.3543.41 ▲3.97
Dashboard /wp-admin2,203 ▲155.83 ▼0.0697.89 ▼2.6937.62 ▼1.96
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0038.89 ▲1.3036.11 ▲2.79
Add New Post /wp-admin/post-new.php1,514 ▼017.61 ▼0.17678.22 ▼7.8153.48 ▼4.02
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.0193.12 ▼14.5845.30 ▼3.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/daum-profile-comment/daum_comment.php

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (2.) image not found
The official readme.txt is a good inspiration

daum-profile-comment/daum_comment.php 92% from 13 tests

The entry point to "Daum Profile Comment" version 0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("daum-profile-comment.php" instead of "daum_comment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1132361
CSS10030

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/2x/bt_long_2x.png6.21KB3.13KB▼ 49.65%
assets/2x/bt_hover_2x.png7.28KB3.72KB▼ 48.84%
assets/2x/bt_press_2x.png6.37KB3.14KB▼ 50.62%
assets/bt/bt_long_hover.png4.13KB2.28KB▼ 44.78%
assets/bt/bt_long_press.png3.73KB1.82KB▼ 51.26%