Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.73ms] Passed 4 tests
A check of server-side resources used by Viral Hover Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.25 ▼6.35 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.61 ▲1.38 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.44 ▼3.33 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.43 ▼11.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 37.59 ▼1.69 |
Viral Hover Buttons /wp-admin/options-general.php?page=viral_hover_buttons_options | 3.24 | 32.03 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
viral_hover_buttons_options |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Viral Hover Buttons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.96 ▼0.42 | 6.05 ▲4.25 | 42.50 ▲4.24 |
Dashboard /wp-admin | 2,214 ▲23 | 4.87 ▼1.03 | 102.74 ▼4.33 | 43.36 ▼0.10 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▼0.00 | 36.05 ▼3.51 | 31.91 ▼1.38 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 23.24 ▲0.14 | 676.73 ▼20.76 | 59.50 ▲4.61 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.20 ▲0.05 | 99.98 ▲4.86 | 40.89 ▼7.29 |
Viral Hover Buttons /wp-admin/options-general.php?page=viral_hover_buttons_options | 956 | 1.84 | 29.03 | 26.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- viral_hover_buttons_options
Smoke tests 50% 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 errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=viral_hover_buttons_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=viral_hover_buttons_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=viral_hover_buttons_options
- > Deprecated in wp-content/plugins/viral-hover-buttons/viral-hover-buttons-options.php+104
array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=viral_hover_buttons_options
- > Notice in wp-content/plugins/viral-hover-buttons/viral-hover-buttons-options.php+188
Undefined property: VIRAL_HOVER_BUTTONS_OPTIONS_PAGE_class::$options
- > GET request to /wp-admin/options-general.php?page=viral_hover_buttons_options
- > Notice in wp-content/plugins/viral-hover-buttons/viral-hover-buttons-options.php+187
Trying to get property 'template' of non-object
- > GET request to /wp-admin/options-general.php?page=viral_hover_buttons_options
- > Notice in wp-content/plugins/viral-hover-buttons/viral-hover-buttons-options.php+188
Trying to get property 'plugin_version' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/viral-hover-buttons/viral-hover-buttons.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/viral-hover-buttons/viral-hover-buttons-options.php:19
- > PHP Fatal error
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 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
3 plugin tags: share buttons, videos, pictures
viral-hover-buttons/viral-hover-buttons.php Passed 13 tests
The principal PHP file in "Viral Hover Buttons" v. 1.0 is loaded by WordPress automatically on each request
80 characters long description:
Adding overlay social share buttons on videos and images, making sharing easier.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin381 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 86 | 61 | 246 |
CSS | 1 | 27 | 23 | 127 |
JavaScript | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 7.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gp_icon.png | 1.85KB | 0.92KB | ▼ 50.24% |
img/hand_icon.png | 1.49KB | 0.28KB | ▼ 81.11% |
img/tw_icon.png | 1.81KB | 0.94KB | ▼ 47.81% |
img/fb_icon.png | 1.02KB | 0.12KB | ▼ 87.88% |
img/pin_icon.png | 1.53KB | 0.71KB | ▼ 53.29% |