Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.37ms] 75% from 4 tests
This is a short check of server-side resources used by 소셜 공유 버튼 By 코스모스팜
Please take the time to fix the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 5,041.72ms on /wp-admin/options-general.php?page=cosmosfarm-share-buttons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.67 ▲1.85 |
Dashboard /wp-admin | 3.39 ▲0.04 | 47.31 ▼13.04 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 51.89 ▲5.81 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.82 ▼12.08 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.47 ▲5.97 |
소셜 공유 버튼 /wp-admin/options-general.php?page=cosmosfarm-share-buttons | 3.38 | 5,041.72 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for 소셜 공유 버튼 By 코스모스팜
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 13.82 ▼0.80 | 14.06 ▲12.21 | 39.24 ▼9.59 |
Dashboard /wp-admin | 2,202 ▲25 | 5.69 ▲0.01 | 82.55 ▼7.00 | 40.93 ▲1.57 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.00 | 34.07 ▼2.98 | 40.17 ▲4.50 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.23 ▼5.36 | 659.58 ▼14.71 | 66.94 ▲13.04 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.23 ▲0.03 | 98.97 ▲2.38 | 44.29 ▼0.71 |
소셜 공유 버튼 /wp-admin/options-general.php?page=cosmosfarm-share-buttons | 1,646 | 3.34 | 47.87 | 78.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cosmosfarm-share-buttons/cosmosfarm-share-buttons.php Passed 13 tests
The principal PHP file in "소셜 공유 버튼 By 코스모스팜" v. 1.9 is loaded by WordPress automatically on each request
47 characters long description:
국내외 SNS 공유 버튼을 제공합니다.
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
Good job! No executable or dangerous file extensions detected810 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 80 | 24 | 655 |
JavaScript | 1 | 1 | 3 | 89 |
PO File | 1 | 210 | 411 | 41 |
CSS | 1 | 5 | 3 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 2 | 66.67% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 9 | |
▷ Named functions | 9 | 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
20 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
layout/default/images/icon-band.png | 3.22KB | 1.55KB | ▼ 51.94% |
layout/default/images/icon-kakaostory.png | 2.27KB | 1.47KB | ▼ 35.28% |
layout/default/images/icon-twitter.png | 1.99KB | 0.51KB | ▼ 74.23% |
layout/default/images/icon-twitter-32.png | 1.52KB | 0.63KB | ▼ 58.29% |
layout/default/images/icon-google.png | 2.22KB | 0.63KB | ▼ 71.69% |