Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼1.41ms] 75% from 4 tests
Server-side resources used by HT Social Share
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,405.89ms on /wp-admin/admin.php?page=htsocial-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 39.34 ▲1.80 |
Dashboard /wp-admin | 3.53 ▲0.22 | 44.49 ▼7.85 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 49.51 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 94.73 ▼3.72 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 39.06 ▲7.23 |
HT Social Share /wp-admin/admin.php?page=socail-share-setting-page | 3.53 | 34.70 |
Recommendations /wp-admin/admin.php?page=htsocial-recommendations | 7.73 | 1,405.89 |
Server storage [IO: ▲3.15MB] [DB: ▲0.67MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for HT Social Share
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 13.29 ▼1.25 | 1.89 ▲0.13 | 38.26 ▼6.38 |
Dashboard /wp-admin | 2,229 ▲41 | 5.79 ▲0.88 | 101.36 ▼17.07 | 40.89 ▼3.01 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.05 ▲0.06 | 38.85 ▲4.73 | 35.78 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.37 ▲0.15 | 643.81 ▼15.74 | 62.37 ▲8.59 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.27 ▲0.09 | 97.58 ▲2.10 | 43.73 ▼1.31 |
HT Social Share /wp-admin/admin.php?page=socail-share-setting-page | 1,441 | 1.78 | 29.10 | 47.69 |
Recommendations /wp-admin/admin.php?page=htsocial-recommendations | 2,861 | 2.26 | 29.48 | 70.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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)
Everything seems fine, however 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-social-share/includes/class.social-share.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ht-social-share/admin/template/general-setting.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: social share plugin, social, post share, share, social share button
ht-social-share/ht-social-share.php 92% from 13 tests
The main file in "HT Social Share" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin15,149 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 3 | 12 | 9,544 |
CSS | 3 | 1,646 | 9 | 4,252 |
PHP | 5 | 182 | 139 | 1,192 |
JavaScript | 2 | 45 | 25 | 161 |
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.44 |
Average class complexity | 35.67 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 23 | 76.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 23.33% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
27 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/extensions/whols-pro.png | 15.30KB | 7.40KB | ▼ 51.65% |
admin/assets/images/style_6.png | 4.19KB | 4.31KB | 0.00% |
admin/assets/images/extensions/hashbar-pro.png | 3.15KB | 3.30KB | 0.00% |
admin/assets/images/style_2.png | 3.13KB | 3.19KB | 0.00% |
admin/assets/images/extensions/multicurrencypro.png | 19.01KB | 9.36KB | ▼ 50.77% |