78% wpsite-follow-us-badges

Code Review | Follow Us Badges

WordPress plugin Follow Us Badges scored78%from 54 tests.

About plugin

  • Plugin page: wpsite-follow-us-...
  • Plugin version: 3.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0.1
  • WordPress version: 6.3.1
  • First release: May 17, 2014
  • Latest release: Aug 5, 2022
  • Number of updates: 67
  • Update frequency: every 44.8 days
  • Top authors: wpsitenet (59.7%)99robots (34.33%)kjbenk (8.96%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /79,649 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.90ms] Passed 4 tests

A check of server-side resources used by Follow Us Badges
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1839.22 ▼9.02
Dashboard /wp-admin3.48 ▲0.1846.06 ▼2.62
Posts /wp-admin/edit.php3.53 ▲0.1846.89 ▼2.07
Add New Post /wp-admin/post-new.php6.06 ▲0.1883.62 ▼9.87
Media Library /wp-admin/upload.php3.41 ▲0.1834.98 ▲0.52
Follow Us Badges /wp-admin/options-general.php?page=wpsite-follow-us-badges-settings3.8046.14

Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 9 new options
New WordPress options
wpsite_follow_us_settings
widget_theysaidso_widget
db_upgraded
wpsite_follow_us_badges_version
theysaidso_admin_options
widget_wpsite_follow_us_badges
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Follow Us Badges
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.54 ▼0.991.73 ▼0.9539.94 ▼6.84
Dashboard /wp-admin2,213 ▲255.86 ▼0.07106.66 ▲2.4040.38 ▼3.28
Posts /wp-admin/edit.php2,072 ▼171.97 ▼0.0535.15 ▼1.3131.97 ▼4.17
Add New Post /wp-admin/post-new.php1,545 ▲3118.44 ▲0.80626.01 ▼67.6247.70 ▼13.71
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.0897.25 ▼16.8844.06 ▼4.00
Follow Us Badges /wp-admin/options-general.php?page=wpsite-follow-us-badges-settings2,9522.6460.1451.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_wpsite_follow_us_badges
    • theysaidso_admin_options
    • wpsite_follow_us_settings
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-follow-us-badges/admin/sidebar.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-follow-us-badges/admin/header.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-follow-us-badges/admin/header.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wpsite-follow-us-badges-settings
    • > Network (severe)
    http://feeds.feedburner.com/99robots?format=sigpro - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameSite

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Tags: There are too many tags (36 tag instead of maximum 10)
The official readme.txt is a good inspiration

wpsite-follow-us-badges/wpsite-follow-us-badges.php 92% from 13 tests

"Follow Us Badges" version 3.1.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,664 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP53671871,956
SVG200794
CSS810134615
JavaScript1778228
Markdown113071

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.93
Average class complexity118.00
▷ Minimum class complexity118.00
▷ Maximum class complexity118.00
Average method complexity10.75
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods866.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
32 PNG files occupy 0.32MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/linkedin.png1.20KB0.26KB▼ 78.28%
img/youtube-old.png3.86KB0.77KB▼ 80.12%
admin/img/ad-custom-development.png48.82KB18.46KB▼ 62.20%
img/logo.png2.74KB2.01KB▼ 26.60%
img/rainbow-strip-hz-wide.png3.24KB0.57KB▼ 82.36%