67% facebook-likebox-widget-and-shortcode

Code Review | Profile Box Shortcode And Widget

WordPress plugin Profile Box Shortcode And Widget scored 67% from 54 tests.

About plugin

  • Plugin page: facebook-likebox-...
  • Plugin version: 1.1.16
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2015
  • Latest release: May 18, 2023
  • Number of updates: 136
  • Update frequency: every 20.5 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active / 236,180 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.13ms] 75% from 4 tests

Analyzing server-side resources used by Profile Box Shortcode And Widget
Please fix the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 671.55ms on /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1437.56 ▼2.62
Dashboard /wp-admin3.46 ▲0.1648.19 ▼0.68
Posts /wp-admin/edit.php3.51 ▲0.1649.92 ▲4.81
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.19 ▼7.16
Media Library /wp-admin/upload.php3.32 ▲0.0938.66 ▲1.94
Our Theme /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-theme-page3.3233.26
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.3932.89
All Facebook Likebox /wp-admin/edit.php?post_type=fblb_shortcode_cpt3.3234.42
Docs /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-doc-page3.3234.90
Add Facebook Likebox /wp-admin/post-new.php?post_type=fblb_shortcode_cpt3.5744.96
Free Plugins /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page3.63671.55

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_fblikebox_widget_shortcode
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Profile Box Shortcode And Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲14613.30 ▼1.004.41 ▲1.5840.30 ▼8.55
Dashboard /wp-admin2,281 ▲935.81 ▼0.07111.73 ▼2.6140.67 ▼4.26
Posts /wp-admin/edit.php2,178 ▲922.07 ▲0.0745.62 ▲8.9340.84 ▲9.03
Add New Post /wp-admin/post-new.php1,609 ▲7618.41 ▼4.68603.71 ▼65.4363.48 ▼2.23
Media Library /wp-admin/upload.php1,477 ▲864.28 ▼0.04100.66 ▼1.7348.68 ▲0.33
Our Theme /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-theme-page1,0022.1025.7578.98
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0542.0925.3731.57
All Facebook Likebox /wp-admin/edit.php?post_type=fblb_shortcode_cpt1,1561.9836.9335.80
Docs /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-doc-page9142.0527.9741.90
Add Facebook Likebox /wp-admin/post-new.php?post_type=fblb_shortcode_cpt2,2942.6960.4498.21
Free Plugins /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page4,2861.8133.58125.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_fblikebox_widget_shortcode
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt
    • > Notice in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-cpt.php+74
    Undefined variable: columns
    • > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt
    • > Notice in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-cpt.php+74
    Trying to access array offset on value of type null

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/facebook-likebox-widget-and-shortcode/docs.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/facebook-likebox-widget-and-shortcode/our-theme/awp-theme.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-meta-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/facebook-likebox-widget-and-shortcode/featured-plugins/featured-plugins.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-shortcode.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-widget-and-shortcode.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/facebook-likebox-widget-and-shortcode/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/facebook-likebox-widget-and-shortcode/facebook-likebox-cpt.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-theme-page
    • > Network (severe)
    wp-content/plugins/facebook-likebox-widget-and-shortcode/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=fblb_shortcode_cpt
    • > Network (severe)
    wp-content/plugins/facebook-likebox-widget-and-shortcode/css/toggle-button.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page
    • > Network (severe)
    wp-content/plugins/facebook-likebox-widget-and-shortcode/css/bootstrap.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page
    • > Network (severe)
    wp-content/plugins/facebook-likebox-widget-and-shortcode/js/bootstrap.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page
    • > Network (severe)
    wp-content/plugins/facebook-likebox-widget-and-shortcode/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=fblb_shortcode_cpt&page=sr-featured-page
    • > Network (severe)
    wp-content/plugins/facebook-likebox-widget-and-shortcode/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: like box shortcode, like box on post, like box widget, like box on page, like box

facebook-likebox-widget-and-shortcode/facebook-likebox-widget-and-shortcode.php Passed 13 tests

The primary PHP file in "Profile Box Shortcode And Widget" version 1.1.16 is used by WordPress to initiate all plugin functionality
56 characters long description:
A WordPress Social Media Plugin To Show Facebook Likebox

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin13,110 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS71,557808,853
PHP85971,7352,842
SVG200973
PO File1118131273
JavaScript4215169

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity48.33
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods121
▷ Static methods54.13%
▷ Public methods9578.51%
▷ Protected methods2621.49%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
our-theme/img/aneeq-premium.png165.42KB57.84KB▼ 65.04%