77% follow-us-on-social-media

Code Review | Follow Us On Social Media

WordPress plugin Follow Us On Social Media scored 77% from 54 tests.

About plugin

  • Plugin page: follow-us-on-soci...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 31, 2014
  • Latest release: Jan 27, 2015
  • Number of updates: 22
  • Update frequency: every 8.2 days
  • Top authors: dwebush (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,154 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.05MB] [CPU: ▼0.71ms] Passed 4 tests

An overview of server-side resources used by Follow Us On Social Media
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.31 ▼5.31
Dashboard /wp-admin3.36 ▲0.0649.62 ▲1.17
Posts /wp-admin/edit.php3.48 ▲0.1249.61 ▲2.26
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.05 ▼0.96
Media Library /wp-admin/upload.php3.29 ▲0.0636.70 ▲2.25
Follow Us On Social Media /wp-admin/options-general.php?page=follow-us-on-social-media3.2530.93

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
fuosm_settings
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Follow Us On Social Media
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15513.59 ▼0.785.88 ▲3.6240.99 ▲0.73
Dashboard /wp-admin2,207 ▲195.99 ▲1.1195.69 ▼14.3638.74 ▼1.38
Posts /wp-admin/edit.php2,072 ▼172.04 ▲0.0535.73 ▼4.9230.26 ▼1.47
Add New Post /wp-admin/post-new.php1,536 ▼623.34 ▲5.03622.41 ▼11.2865.50 ▲9.31
Media Library /wp-admin/upload.php1,392 ▲134.22 ▼0.03105.77 ▲0.5946.54 ▲1.52
Follow Us On Social Media /wp-admin/options-general.php?page=follow-us-on-social-media7612.0724.9937.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • fuosm_settings
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/follow-us-on-social-media/public/views/public.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/follow-us-on-social-media/admin/views/admin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 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
Please fix the following attributes:
  • Screenshots: A description for screenshot #1 is required in follow-us-on-social-media/assets to your readme.txt
  • Contributors: Plugin contributors not specified
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The entry point to "Follow Us On Social Media" version 1.0.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin303 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8111457224
CSS2191469
JavaScript28210

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.00
▷ Minimum class complexity7.00
▷ Maximum class complexity11.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods730.43%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.47MB with 0.30MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png450.52KB105.76KB▼ 76.52%
assets/banner-1544x500.png23.10KB9.63KB▼ 58.33%
assets/banner-772x250.png11.50KB5.06KB▼ 56.00%