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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.64ms] Passed 4 tests
An overview of server-side resources used by Social Share Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 40.72 ▲2.20 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.81 ▼16.97 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 44.30 ▼0.39 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 79.38 ▼15.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.11 ▲5.65 |
Server storage [IO: ▲5.14MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Share Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.27 ▼0.09 | 1.86 ▲0.25 | 45.91 ▲2.03 |
Dashboard /wp-admin | 2,200 ▲19 | 5.57 ▼0.16 | 101.34 ▼10.09 | 41.96 ▼7.91 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.03 ▲0.01 | 35.59 ▼1.31 | 34.24 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,674 ▲146 | 21.94 ▼1.14 | 654.31 ▼33.96 | 37.17 ▼16.50 |
Media Library /wp-admin/upload.php | 1,463 ▲66 | 4.25 ▼0.01 | 99.02 ▼1.44 | 44.28 ▲1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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 does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
social-share-block/social-share-block.php Passed 13 tests
The main PHP script in "Social Share Block" version 2.0.2 is automatically included on every request by WordPress
94 characters long description:
Share your posts & pages instantly on popular social platforms in one click from your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin23,351 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 0 | 12,231 |
CSS | 7 | 1,503 | 54 | 10,223 |
PHP | 10 | 113 | 180 | 792 |
JavaScript | 7 | 15 | 8 | 91 |
JSON | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 34 | |
▷ Static methods | 13 | 38.24% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.76% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin