Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲4.67MB] [CPU: ▲23.99ms] Passed 4 tests
An overview of server-side resources used by Go Viral - social share, social sharebar, social locker, social chat, open graph, reactions, share & view counters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.47 ▲5.00 | 64.69 ▲24.01 |
Dashboard /wp-admin | 8.49 ▲5.18 | 82.52 ▲32.86 |
Posts /wp-admin/edit.php | 8.49 ▲5.13 | 75.06 ▲22.02 |
Add New Post /wp-admin/post-new.php | 9.26 ▲3.37 | 119.26 ▲17.05 |
Media Library /wp-admin/upload.php | 8.49 ▲5.26 | 73.41 ▲35.30 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.49 | 61.84 |
Server storage [IO: ▲7.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 232 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
fs_gdpr |
widget_theysaidso_widget |
fs_accounts |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
fs_debug_mode |
fs_active_plugins |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Go Viral - social share, social sharebar, social locker, social chat, open graph, reactions, share & view counters: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲299 | 15.88 ▲1.13 | 14.75 ▲13.02 | 37.31 ▼11.65 |
Dashboard /wp-admin | 2,338 ▲150 | 4.96 ▲0.09 | 113.77 ▼5.76 | 88.26 ▲44.02 |
Posts /wp-admin/edit.php | 2,239 ▲150 | 2.07 ▼0.07 | 37.82 ▼0.59 | 34.43 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,799 ▲280 | 21.20 ▼1.74 | 734.98 ▲107.11 | 28.68 ▼33.08 |
Media Library /wp-admin/upload.php | 1,532 ▲141 | 4.19 ▲0.06 | 124.87 ▲13.75 | 84.58 ▲36.22 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,198 | 1.73 | 33.56 | 30.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/go-viral/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- fs_debug_mode
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- fs_gdpr
- widget_recent-posts
- fs_accounts
- fs_active_plugins
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/go-viral/go-viral.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant GOVR_URL - assumed 'GOVR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/go-viral/admin/includes/govr-opts.php on line 501
- > PHP Warning
Use of undefined constant GOVR_PATH - assumed 'GOVR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/go-viral/inc/govr-core.php on line 4
- > PHP Warning
Use of undefined constant GOVR_URL - assumed 'GOVR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/go-viral/admin/includes/govr-opts.php on line 541
- > PHP Warning
Use of undefined constant GOVR_URL - assumed 'GOVR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/go-viral/admin/includes/govr-opts.php on line 309
- > PHP Warning
Use of undefined constant GOVR_URL - assumed 'GOVR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/go-viral/admin/includes/govr-opts.php on line 249
- > PHP Fatal error
require_once(): Failed opening required 'GOVR_PATHinc/modules/govr-analytics.php' (include_path='.:/usr/share/php') in wp-content/plugins/go-viral/inc/govr-core.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/go-viral/inc/fbcommentbox.php:3
- > PHP Warning
Use of undefined constant GOVR_URL - assumed 'GOVR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/go-viral/admin/includes/govr-opts.php on line 418
- > PHP Warning
Use of undefined constant GOVR_URL - assumed 'GOVR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/go-viral/admin/includes/govr-opts.php on line 369
- > PHP Warning
require_once(GOVR_PATHinc/modules/govr-analytics.php): failed to open stream: No such file or directory in wp-content/plugins/go-viral/inc/govr-core.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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 your attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
go-viral/go-viral.php Passed 13 tests
This is the main PHP file of "Go Viral - social share, social sharebar, social locker, social chat, open graph, reactions, share & view counters" version 1.8.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
Powerful social tools to engage audience, build trust, motivate social sharing
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected45,043 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 7,524 | 16,368 | 32,234 |
SVG | 3 | 0 | 0 | 9,552 |
CSS | 17 | 208 | 21 | 1,438 |
Sass | 2 | 265 | 5 | 1,333 |
JavaScript | 7 | 108 | 110 | 436 |
PO File | 1 | 17 | 17 | 50 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 74.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,184 | |
▷ Static methods | 176 | 14.86% |
▷ Public methods | 844 | 71.28% |
▷ Protected methods | 15 | 1.27% |
▷ Private methods | 325 | 27.45% |
Functions | 95 | |
▷ Named functions | 95 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 130 | |
▷ Global constants | 105 | 80.77% |
▷ Class constants | 25 | 19.23% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.38MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/cry.png | 18.19KB | 6.65KB | ▼ 63.44% |
public/assets/wink.png | 10.63KB | 4.91KB | ▼ 53.83% |
admin/assets/logo.png | 5.99KB | 2.02KB | ▼ 66.32% |
admin/assets/premium-messenger.png | 17.71KB | 9.45KB | ▼ 46.64% |
admin/assets/premium-imgshare.png | 100.31KB | 48.20KB | ▼ 51.95% |