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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.34ms] Passed 4 tests
An overview of server-side resources used by kontur Copy Code Button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 46.64 ▲0.92 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.70 ▼0.83 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 52.76 ▼2.69 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 100.61 ▼6.75 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.58 ▲2.67 |
kontur Copy Code Button /wp-admin/themes.php?page=kontur-copy-code-button | 3.36 | 38.84 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 15 new options
New WordPress options |
---|
kontur_button_text |
kontur_copy_button_use_logo |
db_upgraded |
kontur_copy_code_button_color |
kontur_copy_button_class |
theysaidso_admin_options |
kontur_copy_button_logo |
kontur_pre_background |
widget_theysaidso_widget |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for kontur Copy Code Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲130 | 13.83 ▼0.77 | 12.41 ▲10.26 | 42.55 ▼2.73 |
Dashboard /wp-admin | 2,202 ▲28 | 5.62 ▲0.06 | 87.24 ▼18.65 | 44.20 ▲2.29 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.00 | 38.21 ▼1.80 | 34.17 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.00 ▼0.25 | 642.21 ▼12.09 | 54.27 ▼0.84 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.27 ▲0.08 | 105.67 ▲7.28 | 41.47 ▼1.52 |
kontur Copy Code Button /wp-admin/themes.php?page=kontur-copy-code-button | 1,978 | 4.57 | 90.37 | 101.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
kontur-copy-code-button/kontur-copy-code-button.php 92% from 13 tests
The entry point to "kontur Copy Code Button" version 1.1.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 212 characters long)
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
Success! There were no dangerous files found in this plugin2,705 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 457 | 15 | 1,849 |
PHP | 4 | 344 | 76 | 521 |
SVG | 7 | 1 | 7 | 186 |
JavaScript | 3 | 71 | 19 | 149 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 PNG file occupies 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/kontur_copy_code_button.png | 216.48KB | 64.56KB | ▼ 70.18% |