Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/crafty-social-buttons/crafty-social-buttons.php+47
Function create_function() is deprecated
Server metrics [RAM: ▼1.53MB] [CPU: ▼44.63ms] Passed 4 tests
A check of server-side resources used by Crafty Social Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.23 ▼1.23 | 6.06 ▼33.37 |
Dashboard /wp-admin | 2.56 ▼0.74 | 9.86 ▼36.89 |
Posts /wp-admin/edit.php | 2.56 ▼0.80 | 9.65 ▼34.33 |
Add New Post /wp-admin/post-new.php | 2.56 ▼3.33 | 10.11 ▼73.93 |
Media Library /wp-admin/upload.php | 2.56 ▼0.67 | 12.67 ▼22.43 |
Crafty Social Buttons /wp-admin/options-general.php?page=crafty-social-buttons | 2.56 | 10.26 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 270 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_crafty-social-buttons_widget |
theysaidso_admin_options |
can_compress_scripts |
crafty-social-buttons |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Crafty Social Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.81 ▲0.43 | 2.14 ▲0.33 | 43.89 ▼3.57 |
Dashboard /wp-admin | 2,220 ▲32 | 5.83 ▲0.80 | 98.44 ▼21.68 | 39.76 ▼2.55 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.06 ▼0.11 | 34.73 ▼0.94 | 34.50 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.28 ▲0.02 | 666.71 ▲21.52 | 48.63 ▼2.03 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.29 ▲0.10 | 108.47 ▲9.70 | 47.01 ▲2.04 |
Crafty Social Buttons /wp-admin/options-general.php?page=crafty-social-buttons | 1,967 | 2.28 | 47.13 | 37.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/crafty-social-buttons/crafty-social-buttons.php+47
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=crafty-social-buttons
- > Deprecated in wp-content/plugins/crafty-social-buttons/crafty-social-buttons.php+47
Function create_function() is deprecated
SRP 0% 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
- 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/crafty-social-buttons/help/share-count-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/about-me-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/advanced-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/action-hook-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/link-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/share-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/credits-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/shortcode-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/adding-icons-tab.php
- > /wp-content/plugins/crafty-social-buttons/help/widget-tab.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/crafty-social-buttons/views/admin.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/crafty-social-buttons/views/widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
crafty-social-buttons/crafty-social-buttons.php 92% from 13 tests
The primary PHP file in "Crafty Social Buttons" version 1.5.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,540 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 787 | 545 | 2,535 |
JavaScript | 3 | 0 | 6 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot 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.29 |
Average class complexity | 9.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 227 | |
▷ Static methods | 56 | 24.67% |
▷ Public methods | 210 | 92.51% |
▷ Protected methods | 6 | 2.64% |
▷ Private methods | 11 | 4.85% |
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
PNG files should be compressed to save space and minimize bandwidth usage
208 compressed PNG files occupy 0.76MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
buttons/crafty-stitchy-square/instagram.png | 4.16KB | 4.04KB | ▼ 2.79% |
buttons/somacro/google.png | 2.28KB | 2.17KB | ▼ 4.83% |
buttons/pagepeel/dawanda.png | 2.72KB | 2.70KB | ▼ 0.65% |
buttons/crafty-stitchy-round/ebay.png | 3.39KB | 3.49KB | 0.00% |
buttons/somacro/youtube.png | 1.64KB | 1.63KB | ▼ 0.66% |