Benchmarks
Plugin footprint 83% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼304.35ms] Passed 4 tests
Server-side resources used by letstalk button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.22 | 49.96 ▼2.77 |
Dashboard /wp-admin | 3.57 ▲0.16 | 34.02 ▲2.00 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 38.80 ▲0.12 |
Add New Post /wp-admin/post-new.php | 7.10 ▲0.12 | 96.70 ▼1,213.92 |
Media Library /wp-admin/upload.php | 3.51 ▲0.22 | 24.80 ▼0.83 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 2 new options
New WordPress options |
---|
letstalk-options |
letstalk_deferred_admin_notices |
Browser metrics Passed 4 tests
An overview of browser requirements for letstalk button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,813 ▲59 | 16.17 ▲0.49 | 6.49 ▼0.44 | 3.21 ▲0.81 |
Dashboard /wp-admin | 2,907 ▲52 | 6.23 ▲0.04 | 114.68 ▼27.80 | 171.00 ▲11.92 |
Posts /wp-admin/edit.php | 2,677 ▼14 | 3.13 ▼0.11 | 62.93 ▼0.67 | 131.72 ▼7.50 |
Add New Post /wp-admin/post-new.php | 1,674 ▼43 | 16.30 ▼5.13 | 393.01 ▼49.33 | 161.33 ▲2.46 |
Media Library /wp-admin/upload.php | 1,715 ▲20 | 5.53 ▲0.01 | 122.85 ▼20.80 | 208.08 ▲22.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 2 options in the database
- letstalk_deferred_admin_notices
- letstalk-options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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 following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/letstalk/trunk/includes/partials/letstalk-display-widget.php
- > /wp-content/plugins/letstalk/includes/partials/letstalk-display-widget.php
- 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: setatts in wp-content/plugins/letstalk/admin/partials/___letstalk-admin-field-repeater.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/letstalk/admin/partials/letstalk-admin-page-settings.php:16
- > PHP Notice
Undefined variable: setatts in wp-content/plugins/letstalk/trunk/admin/partials/___letstalk-admin-field-repeater.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/letstalk/trunk/admin/partials/letstalk-admin-field-textarea.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/letstalk/trunk/admin/partials/___letstalk-admin-field-text.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/letstalk/admin/partials/___letstalk-admin-field-select.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/letstalk/includes/class-letstalk-widget.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/letstalk/admin/partials/___letstalk-admin-field-editor.php:29
- > PHP Notice
Undefined variable: count in wp-content/plugins/letstalk/trunk/admin/partials/___letstalk-admin-field-repeater.php on line 24
- > PHP Notice
Undefined variable: count in wp-content/plugins/letstalk/admin/partials/___letstalk-admin-field-repeater.php on line 22
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (topishare Let's talk button), #2 (Installation step 1), #3 (Installation step 2), #4 (Installation step 3), #5 (Installation step 4), #6 (How the Let's talk button works)
letstalk/letstalk.php Passed 13 tests
The principal PHP file in "letstalk button" v. 1.0.0 is loaded by WordPress automatically on each request
90 characters long description:
Add a topishare Let's talk button on your site and create your own customized social space
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 plugin1,068 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 600 | 1,162 | 840 |
Sass | 1 | 27 | 0 | 129 |
JavaScript | 8 | 65 | 56 | 98 |
CSS | 2 | 1 | 5 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 16 | 10.81% |
▷ Public methods | 120 | 81.08% |
▷ Protected methods | 2 | 1.35% |
▷ Private methods | 26 | 17.57% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
7 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/assets/screenshot-4.png | 93.60KB | 41.73KB | ▼ 55.41% |
trunk/assets/screenshot-1.png | 22.83KB | 9.16KB | ▼ 59.88% |
trunk/assets/icon-128x128.png | 6.17KB | 3.14KB | ▼ 49.11% |
admin/images/topishare_logo.png | 0.62KB | 0.73KB | 0.00% |
trunk/admin/images/topishare_logo.png | 0.62KB | 0.73KB | 0.00% |