84% easy-facebook-like-box

Code Review | Easy Social Box / Page Plugin

WordPress plugin Easy Social Box / Page Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: easy-facebook-lik...
  • Plugin version: 4.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-6.1.1
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: Mar 3, 2023
  • Number of updates: 40
  • Update frequency: every 80.3 days
  • Top authors: iamshehryar (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

8,000+ active / 129,385 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.39ms] Passed 4 tests

A check of server-side resources used by Easy Social Box / Page Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.87 ▼8.82
Dashboard /wp-admin3.31 ▲0.0145.05 ▼5.78
Posts /wp-admin/edit.php3.36 ▲0.0148.10 ▲2.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.59 ▼9.35
Media Library /wp-admin/upload.php3.24 ▲0.0134.49 ▼1.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_easy_facebook_like_box
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Social Box / Page Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.75 ▼0.641.72 ▼0.1141.37 ▼7.42
Dashboard /wp-admin2,206 ▲185.90 ▼0.00107.25 ▲5.7140.57 ▼4.27
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0340.35 ▲4.2135.99 ▲3.28
Add New Post /wp-admin/post-new.php1,542 ▲2818.51 ▲1.01601.62 ▼48.4851.01 ▼23.22
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0895.25 ▼1.8842.84 ▼0.84

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_easy_facebook_like_box
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-facebook-like-box/facebook-like-box.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: easy facebook like box, facebook, facebook like button, facebook like box, fb like...

easy-facebook-like-box/facebook-like-box.php 92% from 13 tests

The entry point to "Easy Social Box / Page Plugin" version 4.1.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-facebook-like-box.php" instead of "facebook-like-box.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected251 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13121251

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity7.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.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%
Functions3
▷ Named functions3100.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