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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 55.85 ▲9.90 |
Dashboard /wp-admin | 3.36 ▲0.06 | 56.83 ▲4.98 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 55.45 ▲4.69 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.31 ▼3.45 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.24 ▼0.22 | 2.18 ▲0.32 | 43.59 ▲3.03 |
Dashboard /wp-admin | 2,206 ▲26 | 5.52 ▼0.09 | 89.33 ▲2.54 | 80.05 ▲40.01 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.98 ▼0.03 | 36.43 ▼2.69 | 42.72 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 22.93 ▼0.31 | 688.31 ▼19.59 | 68.34 ▼15.10 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.21 ▼0.00 | 98.55 ▲0.54 | 71.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 44 | 20 | 407 |
JavaScript | 1 | 0 | 3 | 33 |
CSS | 1 | 0 | 3 | 4 |
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 code | 0.41 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wordpress-logo.png | 2.87KB | 1.57KB | ▼ 45.29% |
images/icon-big.png | 2.09KB | 1.26KB | ▼ 39.61% |
images/icon.png | 1.40KB | 0.69KB | ▼ 50.80% |