Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.43ms] Passed 4 tests
Analyzing server-side resources used by Minimal Share Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.06 ▲0.43 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.32 ▼4.85 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.83 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.96 ▼14.88 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.05 ▲1.59 |
Share Options /wp-admin/options-general.php?page=minimal-share-buttons | 3.23 | 38.77 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_minimal_share_buttons |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Minimal Share Buttons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.25 ▼1.16 | 2.51 ▲0.65 | 43.17 ▼1.53 |
Dashboard /wp-admin | 2,210 ▲25 | 5.86 ▲0.92 | 107.02 ▲1.03 | 39.36 ▲0.58 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.02 | 38.87 ▲3.43 | 36.28 ▲4.25 |
Add New Post /wp-admin/post-new.php | 6,417 ▲4,898 | 20.52 ▼2.92 | 946.90 ▲237.74 | 54.33 ▼0.51 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▲0.08 | 109.89 ▲6.19 | 50.41 ▲2.55 |
Share Options /wp-admin/options-general.php?page=minimal-share-buttons | 918 | 2.05 | 21.45 | 28.41 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_minimal_share_buttons
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimal-share-buttons/blocks/index.php:63
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/minimal-share-buttons/inc/class-minimal-share-buttons.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/minimal-share-buttons/minimal-share-buttons.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimal-share-buttons/inc/settings.php:32
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: share buttons, social media, twitter, linkedin, social sharing...
minimal-share-buttons/minimal-share-buttons.php Passed 13 tests
This is the main PHP file of "Minimal Share Buttons" version 1.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
A social share plugin that doesn't spy on users and doesn't slow down you site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin762 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 110 | 210 | 536 |
JavaScript | 4 | 13 | 0 | 92 |
CSS | 1 | 11 | 0 | 76 |
HTML | 1 | 2 | 0 | 42 |
SVG | 11 | 0 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 10 | 62.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin