Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.32ms] Passed 4 tests
A check of server-side resources used by Social Connect: Social Share/Follow By 7Span
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.05 ▲2.96 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.02 ▼2.00 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.25 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.22 ▼16.85 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 41.23 ▲4.10 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_social_connect |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Social Connect: Social Share/Follow By 7Span: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.27 ▼1.12 | 4.62 ▲2.77 | 44.26 ▲5.66 |
Dashboard /wp-admin | 2,203 ▲14 | 4.83 ▼0.11 | 98.74 ▼16.69 | 38.56 ▼3.40 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.00 | 36.20 ▼1.68 | 31.77 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 18.43 ▼4.78 | 604.27 ▼13.21 | 48.86 ▼23.97 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.16 ▼0.03 | 97.12 ▼8.85 | 43.38 ▲1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_social_connect
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 4× 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/social-share-by-7span/includes/core.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-share-by-7span/social-share-by-7span.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-share-by-7span/includes/embed.php:220
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-share-by-7span/assets/widget/widget_social_connect.php:10
- > PHP Fatal error
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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
social-share-by-7span/social-share-by-7span.php Passed 13 tests
"Social Connect: Social Share/Follow By 7Span" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Adds very attractive responsive social icons on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected563 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 92 | 57 | 326 |
CSS | 2 | 51 | 0 | 237 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.66MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-7.png | 71.91KB | 19.19KB | ▼ 73.31% |
assets/screenshot-4.png | 10.88KB | 4.61KB | ▼ 57.59% |
assets/screenshot-2.png | 47.06KB | 12.84KB | ▼ 72.72% |
assets/screenshot-5.png | 136.94KB | 39.91KB | ▼ 70.86% |
assets/screenshot-1.png | 99.48KB | 29.91KB | ▼ 69.93% |