Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▲4.46ms] 75% from 4 tests
Server-side resources used by Social Share Buttons, Social Sharing Icons, Click to Tweet — Social Media Plugin by Social Snap
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 1,121.00ms on /wp-admin/admin.php?page=socialsnap-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 53.27 ▲7.14 |
Dashboard /wp-admin | 3.64 ▲0.33 | 60.59 ▲9.13 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 65.15 ▲3.20 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 126.06 ▼1.64 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 47.41 ▲10.60 |
About /wp-admin/admin.php?page=about-socialsnap | 3.53 | 41.68 |
Settings /wp-admin/admin.php?page=socialsnap-settings | 3.94 | 105.15 |
Statistics /wp-admin/admin.php?page=socialsnap-statistics | 3.56 | 41.01 |
Addons /wp-admin/admin.php?page=socialsnap-addons | 3.56 | 1,121.00 |
Server storage [IO: ▲1.43MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 79 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_socialsnap_stats |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
socialsnap_activated |
widget_socialsnap-ctt-widget |
widget_recent-comments |
db_upgraded |
socialsnap_settings |
socialsnap_version |
widget_socialsnap-social-followers-widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Share Buttons, Social Sharing Icons, Click to Tweet — Social Media Plugin by Social Snap
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,228 ▲439 | 14.07 ▲0.87 | 8.25 ▲6.39 | 49.23 ▲6.79 |
Dashboard /wp-admin | 2,261 ▲55 | 5.03 ▼0.87 | 105.42 ▲4.06 | 39.46 ▲0.07 |
Posts /wp-admin/edit.php | 2,188 ▲96 | 2.05 ▲0.02 | 41.09 ▲0.44 | 38.26 ▲2.65 |
Add New Post /wp-admin/post-new.php | 7,378 ▲5,849 | 20.59 ▲2.29 | 1,177.18 ▲512.27 | 68.02 ▲1.18 |
Media Library /wp-admin/upload.php | 1,438 ▲53 | 4.23 ▼0.01 | 94.51 ▼6.75 | 39.31 ▼5.81 |
About /wp-admin/admin.php?page=about-socialsnap | 1,316 | 2.05 | 33.72 | 76.41 |
Settings /wp-admin/admin.php?page=socialsnap-settings | 6,555 | 3.91 | 159.62 | 119.59 |
Statistics /wp-admin/admin.php?page=socialsnap-statistics | 901 | 2.06 | 31.15 | 39.21 |
Addons /wp-admin/admin.php?page=socialsnap-addons | 989 | 2.20 | 29.61 | 36.51 |
Uninstaller [IO: ✅] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_socialsnap_stats
- This plugin did not uninstall successfully, leaving 11 options in the database
- socialsnap_settings
- socialsnap_activated
- widget_recent-posts
- theysaidso_admin_options
- socialsnap_version
- widget_socialsnap-social-followers-widget
- widget_theysaidso_widget
- db_upgraded
- widget_socialsnap-ctt-widget
- can_compress_scripts
- ...
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 25× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/socialsnap/includes/admin/class-rating.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/socialsnap/includes/admin/settings/config-editor.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/socialsnap/includes/class-install.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/socialsnap/includes/share/class-social-share.php:98
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/socialsnap/includes/class-click-to-tweet.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/socialsnap/includes/compatibility/class-mashshare-compatibility.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/socialsnap/includes/compatibility/class-sw-compatibility.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/socialsnap/includes/admin/class-post-list-table.php:21
- > PHP Fatal error
Uncaught Error: Class 'SocialSnap_DB' not found in wp-content/plugins/socialsnap/includes/class-db-stats.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/socialsnap/includes/functions.php:413
- > PHP Fatal error
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 87% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Tags: Too many tags (36 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please a description for screenshot #18 in socialsnap/assets to your readme.txt
socialsnap/socialsnap.php 85% from 13 tests
The main file in "Social Share Buttons, Social Sharing Icons, Click to Tweet — Social Media Plugin by Social Snap" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin11,342 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 2,617 | 3,066 | 9,753 |
PO File | 1 | 721 | 744 | 1,525 |
XML | 1 | 0 | 0 | 51 |
JavaScript | 6 | 0 | 0 | 6 |
CSS | 5 | 0 | 0 | 5 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 26.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 219.00 |
Average method complexity | 6.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 1 | 2.00% |
▷ Concrete classes | 49 | 98.00% |
▷ Final classes | 1 | 2.04% |
Methods | 247 | |
▷ Static methods | 6 | 2.43% |
▷ Public methods | 230 | 93.12% |
▷ Protected methods | 3 | 1.21% |
▷ Private methods | 14 | 5.67% |
Functions | 67 | |
▷ Named functions | 66 | 98.51% |
▷ Anonymous functions | 1 | 1.49% |
Constants | 8 | |
▷ Global constants | 8 | 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