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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.20ms] Passed 4 tests
Server-side resources used by The Tweet Button - Simple Sharing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 45.63 ▲4.84 |
Dashboard /wp-admin | 3.35 ▲0.05 | 54.73 ▲1.43 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 58.28 ▲7.91 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 92.35 ▼24.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.77 ▲5.80 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by The Tweet Button - Simple Sharing
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲136 | 14.74 ▲1.52 | 32.22 ▲30.10 | 46.93 ▲5.85 |
Dashboard /wp-admin | 2,213 ▲13 | 4.84 ▼0.95 | 104.26 ▲5.91 | 41.87 ▲1.75 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.00 ▼0.01 | 34.98 ▼0.80 | 33.06 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,518 ▼18 | 23.15 ▲0.10 | 662.56 ▲63.30 | 53.06 ▲3.18 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.06 | 99.46 ▼8.56 | 42.23 ▼3.17 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/the-tweet-button/public/partials/tweet-button-public-display.php
- > /wp-content/plugins/the-tweet-button/admin/partials/tweet-button-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
the-tweet-button/tweet-button.php 92% from 13 tests
Analyzing the main PHP file in "The Tweet Button - Simple Sharing" version 1.0.0
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("the-tweet-button.php" instead of "tweet-button.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin197 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 116 | 536 | 177 |
JavaScript | 3 | 6 | 54 | 20 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin