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.08MB] [CPU: ▼4.38ms] Passed 4 tests
Analyzing server-side resources used by Smartarget Follow Us
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 19.94 ▲16.43 | 3,294,155.87 ▲3,294,112.14 |
Dashboard /wp-admin | 3.41 ▲0.06 | 51.93 ▼4.22 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 54.63 ▲2.16 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.08 | 89.59 ▼13.50 |
Media Library /wp-admin/upload.php | 3.34 ▲0.06 | 38.87 ▼1.95 |
Smartarget Follow Us /wp-admin/options-general.php?page=smartarget_social_follow_bar | 3.31 | 45.72 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Smartarget Follow Us
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 21.00 ▲6.39 | 8.08 ▲6.39 | 40.37 ▼5.25 |
Dashboard /wp-admin | 2,205 ▲28 | 10.64 ▲5.05 | 159.69 ▲64.72 | 36.96 ▼7.78 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 7.24 ▲5.25 | 110.39 ▲69.61 | 33.64 ▼4.31 |
Add New Post /wp-admin/post-new.php | 1,694 ▲166 | 27.66 ▲4.69 | 743.07 ▼11.98 | 57.48 ▼9.23 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 9.49 ▲5.28 | 178.74 ▲69.23 | 45.33 ▼2.87 |
Smartarget Follow Us /wp-admin/options-general.php?page=smartarget_social_follow_bar | 1,822 | 9.12 | 154.31 | 87.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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)
Almost there, just fix the following server-side errors
- 16 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smartarget_social_follow_bar
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 16 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smartarget_social_follow_bar
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smartarget-follow-us/public/partials/smartarget-social-follow-bar-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-follow-us/admin/partials/smartarget-social-follow-bar-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: pinterest, instagram plugin, youtube, followers, facebook...
smartarget-follow-us/smartarget-social-follow-bar.php 85% from 13 tests
The main PHP file in "Smartarget Follow Us" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("smartarget-follow-us.php" instead of "smartarget-social-follow-bar.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin430 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 130 | 522 | 225 |
JavaScript | 3 | 5 | 1,397 | 205 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin