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 gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.40ms] Passed 4 tests
This is a short check of server-side resources used by Better Share Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 44.07 ▼1.13 |
Dashboard /wp-admin | 3.48 ▲0.13 | 49.07 ▼12.22 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.45 ▼1.10 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 84.14 ▼9.38 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 33.77 ▼2.86 |
Add New /wp-admin/post-new.php?post_type=share_buttons | 3.54 | 43.24 |
All Share Buttons /wp-admin/edit.php?post_type=share_buttons | 3.44 | 32.55 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Better Share Buttons: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.28 ▼0.11 | 1.72 ▲0.20 | 44.53 ▲5.03 |
Dashboard /wp-admin | 2,226 ▲49 | 5.52 ▼0.04 | 81.21 ▼8.14 | 38.53 ▼0.30 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.02 ▲0.03 | 35.26 ▼2.24 | 36.32 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.09 ▲0.05 | 676.69 ▼25.77 | 66.01 ▲12.96 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.20 ▼0.00 | 94.79 ▼3.24 | 41.29 ▼0.14 |
Add New /wp-admin/post-new.php?post_type=share_buttons | 1,742 | 2.78 | 52.79 | 71.60 |
All Share Buttons /wp-admin/edit.php?post_type=share_buttons | 1,095 | 1.96 | 28.57 | 26.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-share-buttons/better-share-buttons.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/better-share-buttons/networks.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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 to be fixed:
- Screenshots: Please a description for screenshot #1 in better-share-buttons/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
better-share-buttons/better-share-buttons.php Passed 13 tests
The principal PHP file in "Better Share Buttons" v. 1.8 is loaded by WordPress automatically on each request
42 characters long description:
Share buttons for social networks and more
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 plugin1,346 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 21 | 797 |
CSS | 8 | 0 | 0 | 453 |
JSON | 8 | 0 | 0 | 96 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin