84% facebook-wall-and-social-integration

Code Review | Mitsol Social Post Feed

WordPress plugin Mitsol Social Post Feed scored84%from 54 tests.

About plugin

  • Plugin page: facebook-wall-and...
  • Plugin version: 1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2013
  • Latest release: Jul 22, 2022
  • Number of updates: 138
  • Update frequency: every 22.9 days
  • Top authors: mitsol (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /37,834 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.15MB] [CPU: ▼9.65ms] Passed 4 tests

A check of server-side resources used by Mitsol Social Post Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0632.97 ▼3.43
Dashboard /wp-admin3.49 ▲0.1543.94 ▼13.53
Posts /wp-admin/edit.php3.54 ▲0.1940.59 ▼6.84
Add New Post /wp-admin/post-new.php6.07 ▲0.1978.37 ▼14.81
Media Library /wp-admin/upload.php3.42 ▲0.1934.60 ▲1.17

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options
ms_fbwall_plugin_token_settings
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
ms_fbwall_plugin_color_settings
ms_fbwall_plugin_postlayout_settings
widget_recent-comments
ms_fbwall_plugin_general_settings
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Mitsol Social Post Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.23 ▼0.331.66 ▼0.0043.20 ▲1.22
Dashboard /wp-admin2,207 ▲265.56 ▼0.1788.69 ▼7.8440.14 ▼4.93
Posts /wp-admin/edit.php2,118 ▲151.99 ▲0.0034.98 ▼5.6636.00 ▲1.94
Add New Post /wp-admin/post-new.php1,543 ▲1723.31 ▲0.24653.85 ▲41.2859.82 ▼4.94
Media Library /wp-admin/upload.php1,418 ▲214.20 ▼0.0299.04 ▼1.2841.56 ▼0.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/facebook-wall-and-social-integration/facebook-wall-and-social-integration.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 require attention:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can look at the official readme.txt

facebook-wall-and-social-integration/facebook-wall-and-social-integration.php Passed 13 tests

"Mitsol Social Post Feed" version 1.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Facebook feed of page/group/profile and social integration by mitsol(free version)

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
No dangerous file extensions were detected6,721 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS2979255,541
PHP31441381,180

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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
3 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.PNG59.44KB20.60KB▼ 65.35%
screenshot-2.PNG35.26KB14.24KB▼ 59.63%
screenshot-3.PNG28.82KB11.26KB▼ 60.92%