Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.37ms] Passed 4 tests
An overview of server-side resources used by TNK SNS share link buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 28.11 ▼12.47 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.54 ▼4.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.31 ▼3.69 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 93.05 ▼4.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.11 ▲4.93 |
TNK SNS links /wp-admin/plugins.php?page=tnk-sns-share-link-buttons/tnksnslink.php | 3.20 | 30.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by TNK SNS share link buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.58 ▼0.84 | 1.76 ▼0.11 | 39.16 ▼0.23 |
Dashboard /wp-admin | 2,216 ▲25 | 4.87 ▼0.01 | 113.12 ▲2.61 | 43.65 ▼0.92 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 1.99 ▼0.05 | 39.00 ▼2.04 | 35.14 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,367 ▼161 | 19.46 ▼3.82 | 530.23 ▼159.41 | 39.71 ▼13.66 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.18 ▼0.02 | 96.02 ▼1.43 | 40.64 ▼3.08 |
TNK SNS links /wp-admin/plugins.php?page=tnk-sns-share-link-buttons/tnksnslink.php | 924 | 2.06 | 24.23 | 25.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method tnksnsplugin::uninstall() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/tnk-sns-share-link-buttons/tnksnslink.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Support services), #2 (setting page)
tnk-sns-share-link-buttons/tnksnslink.php 92% from 13 tests
The entry point to "TNK SNS share link buttons" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("tnk-sns-share-link-buttons.php" instead of "tnksnslink.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin243 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 17 | 196 |
JavaScript | 1 | 2 | 0 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
20 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/en.png | 0.71KB | 0.72KB | 0.00% |
icons/pk.png | 0.60KB | 0.60KB | 0.00% |
icons/tw.png | 0.63KB | 0.62KB | ▼ 1.40% |
icons/pi.png | 0.54KB | 0.52KB | ▼ 2.72% |
icons/gb.png | 0.81KB | 0.81KB | 0.12% |