84% cosmosfarm-comments

Code Review | 코스모스팜 소셜댓글

WordPress plugin 코스모스팜 소셜댓글 scored84%from 54 tests.

About plugin

  • Plugin page: cosmosfarm-comments
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Dec 2, 2021
  • Number of updates: 28
  • Update frequency: every 87.1 days
  • Top authors: cosmosfarm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /6,980 total downloads

Benchmarks

Plugin footprint 83% 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: ▲1.47ms] Passed 4 tests

A check of server-side resources used by 코스모스팜 소셜댓글
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0655.85 ▲9.90
Dashboard /wp-admin3.36 ▲0.0656.83 ▲4.98
Posts /wp-admin/edit.php3.48 ▲0.1255.45 ▲4.69
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.31 ▼3.45
Media Library /wp-admin/upload.php3.29 ▲0.0639.95 ▼0.34

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables
wp_cosmosfarm_comments_token
New WordPress options
db_upgraded
widget_cosmosfarm_comments_widget
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by 코스모스팜 소셜댓글
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.24 ▼0.222.18 ▲0.3243.59 ▲3.03
Dashboard /wp-admin2,206 ▲265.52 ▼0.0989.33 ▲2.5480.05 ▲40.01
Posts /wp-admin/edit.php2,111 ▲111.98 ▼0.0336.43 ▼2.6942.72 ▲1.24
Add New Post /wp-admin/post-new.php1,555 ▲2922.93 ▼0.31688.31 ▼19.5968.34 ▼15.10
Media Library /wp-admin/upload.php1,414 ▲174.21 ▼0.0098.55 ▲0.5471.24 ▲23.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_cosmosfarm_comments_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cosmosfarm-comments/class/Cosmosfarm_Comments_Widget.class.php:8

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: comment, social, kboard, comments

cosmosfarm-comments/cosmosfarm-comments.php Passed 13 tests

"코스모스팜 소셜댓글" version 1.9.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
사용 할 수록 홈페이지가 자연적으로 홍보되는 차세대 소셜댓글 서비스 입니다.

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
Success! There were no dangerous files found in this plugin444 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP54420407
JavaScript10333
CSS1034

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.50
▷ Minimum class complexity4.00
▷ Maximum class complexity23.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/wordpress-logo.png2.87KB1.57KB▼ 45.29%
images/icon-big.png2.09KB1.26KB▼ 39.61%
images/icon.png1.40KB0.69KB▼ 50.80%