84% all-in-one-facebook-like-widget

Code Review | All-in-one Like Widget

WordPress plugin All-in-one Like Widget scored84%from 54 tests.

About plugin

  • Plugin page: all-in-one-facebo...
  • Plugin version: 2.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2014
  • Latest release: Sep 23, 2023
  • Number of updates: 37
  • Update frequency: every 88.1 days
  • Top authors: jeroenpeters1986 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /52,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.35ms] Passed 4 tests

An overview of server-side resources used by All-in-one Like Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.04 ▼4.92
Dashboard /wp-admin3.40 ▲0.0942.42 ▼8.20
Posts /wp-admin/edit.php3.45 ▲0.0940.50 ▼8.80
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.02 ▲4.00
Media Library /wp-admin/upload.php3.32 ▲0.0932.78 ▼3.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
widget_aio_facebook_like_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for All-in-one Like Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.61 ▼0.681.47 ▼0.3035.35 ▼15.96
Dashboard /wp-admin2,209 ▲215.85 ▲0.98103.05 ▼12.8340.87 ▼3.73
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0340.14 ▲3.1736.17 ▼2.10
Add New Post /wp-admin/post-new.php1,542 ▲918.25 ▼4.83631.14 ▼58.1348.92 ▼5.57
Media Library /wp-admin/upload.php1,388 ▲34.29 ▲0.05100.78 ▼8.7241.02 ▼5.62

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_aio_facebook_like_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/all-in-one-facebook-like-widget/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: facebook page, like button, likebutton, fanpage, facebox...

all-in-one-facebook-like-widget/index.php 92% from 13 tests

The entry point to "All-in-one Like Widget" version 2.2.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("all-in-one-facebook-like-widget.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected298 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15037298

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin