Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲5.55MB] [CPU: ▲33.22ms] 75% from 4 tests
An overview of server-side resources used by Share This Image
Please have a look at the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.55MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.43 ▲5.97 | 67.00 ▲22.76 |
Dashboard /wp-admin | 9.45 ▲6.15 | 84.23 ▲36.77 |
Posts /wp-admin/edit.php | 9.45 ▲6.10 | 91.82 ▲41.32 |
Add New Post /wp-admin/post-new.php | 9.87 ▲3.98 | 124.44 ▲32.04 |
Media Library /wp-admin/upload.php | 9.45 ▲6.22 | 78.13 ▲45.14 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.45 | 60.95 |
Server storage [IO: ▲3.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 230 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
fs_active_plugins |
theysaidso_admin_options |
fs_accounts |
widget_theysaidso_widget |
sti_plugin_ver |
widget_recent-posts |
sti_settings |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Share This Image
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲143 | 13.81 ▼0.25 | 13.53 ▲11.53 | 30.15 ▼15.32 |
Dashboard /wp-admin | 2,225 ▲45 | 5.59 ▼0.05 | 96.38 ▲0.32 | 45.31 ▼0.44 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.11 ▲0.15 | 42.44 ▲2.22 | 37.75 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,675 ▲149 | 23.03 ▼0.05 | 681.72 ▲39.87 | 61.20 ▲11.63 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.20 ▲0.02 | 97.97 ▲2.65 | 44.74 ▲2.18 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,088 | 1.66 | 26.66 | 27.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/share-this-image/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_debug_mode
- fs_accounts
- sti_plugin_ver
- fs_active_plugins
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/share-this-image/sharer.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/share-this-image/sharer.php on line 61
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/share-this-image/sharer.php on line 64
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/share-this-image/sharer.php on line 67
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/share-this-image/sharer.php on line 65
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/share-this-image/sharer.php on line 63
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/share-this-image/sharer.php on line 66
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/share-this-image/sharer.php on line 68
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/share-this-image/sharer.php on line 62
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: social buttons, twitter, facebook, sharing, image
share-this-image/share-this-image.php Passed 13 tests
"Share This Image" version 1.88's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Allows you to share in social networks any of your images
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected39,563 lines of code in 170 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 9,363 | 18,105 | 37,012 |
JavaScript | 9 | 376 | 90 | 1,209 |
CSS | 18 | 185 | 18 | 1,125 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 3 | 0 | 0 | 3 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 72.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 2 | 2.86% |
▷ Concrete classes | 68 | 97.14% |
▷ Final classes | 1 | 1.47% |
Methods | 1,418 | |
▷ Static methods | 236 | 16.64% |
▷ Public methods | 1,003 | 70.73% |
▷ Protected methods | 17 | 1.20% |
▷ Private methods | 398 | 28.07% |
Functions | 109 | |
▷ Named functions | 109 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.22MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/feature1.png | 12.79KB | 13.41KB | 0.00% |
assets/images/sti-button.png | 7.46KB | 3.20KB | ▼ 57.05% |
assets/images/sti-button-flat-small.png | 5.45KB | 3.61KB | ▼ 33.79% |
assets/images/feature10.png | 18.16KB | 18.80KB | 0.00% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |