10% follow-us-on-widget

Code Review | Follow us on widget

WordPress plugin Follow us on widget scored10%from 54 tests.

About plugin

  • Plugin page: follow-us-on-widget
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9
  • WordPress version: 6.3.1
  • First release: Jun 1, 2012
  • Latest release: Nov 26, 2017
  • Number of updates: 25
  • Update frequency: every 80.3 days
  • Top authors: mrvijayakumar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /18,191 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/follow-us-on-widget/follow-us.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; FollowusonWidget has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼52.37ms] Passed 4 tests

Analyzing server-side resources used by Follow us on widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.334.03 ▼38.91
Dashboard /wp-admin2.15 ▼1.155.52 ▼45.53
Posts /wp-admin/edit.php2.15 ▼1.218.25 ▼39.46
Add New Post /wp-admin/post-new.php2.15 ▼3.745.87 ▼85.57
Media Library /wp-admin/upload.php2.15 ▼1.086.60 ▼28.24

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_followusonwidget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Follow us on widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.74 ▼0.611.70 ▼0.2838.95 ▼5.20
Dashboard /wp-admin2,206 ▲185.83 ▲0.81112.69 ▼5.0738.56 ▼5.78
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0340.34 ▲1.8434.57 ▲0.09
Add New Post /wp-admin/post-new.php1,514 ▼1923.71 ▲0.46590.88 ▼156.0252.23 ▼2.34
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.00101.05 ▼10.4044.29 ▲0.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/follow-us-on-widget/follow-us.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; FollowusonWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_followusonwidget
    • widget_recent-posts
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/follow-us-on-widget/follow-us.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% 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
4 plugin tags: follow us, social widget, follow us widget, follow me

follow-us-on-widget/follow-us.php 92% from 13 tests

The main file in "Follow us on widget" v. 1.3 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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("follow-us-on-widget.php" instead of "follow-us.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin127 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP168124
CSS1013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/twitter.png2.23KB1.53KB▼ 31.58%
images/linkedin.png2.67KB1.75KB▼ 34.47%
images/xing.png4.01KB1.35KB▼ 66.20%
images/pinterest.png2.44KB1.47KB▼ 39.52%
images/google_plus.png2.73KB1.53KB▼ 44.10%