78% facebook-master

Code Review | TechGasp Networking Master

WordPress plugin TechGasp Networking Master scored78%from 54 tests.

About plugin

  • Plugin page: facebook-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: Jul 22, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 68
  • Update frequency: every 41.0 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

70+ active /45,544 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.53ms] Passed 4 tests

A check of server-side resources used by TechGasp Networking Master
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.31 ▼1.94
Dashboard /wp-admin3.33 ▲0.0345.65 ▲1.10
Posts /wp-admin/edit.php3.38 ▲0.0345.20 ▲3.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.47 ▼12.40
Media Library /wp-admin/upload.php3.25 ▲0.0337.28 ▲4.11
Settings /wp-admin/admin.php?page=facebook-master-admin-settings-wide3.2931.97
Add-ons /wp-admin/admin.php?page=facebook-master-admin-addons3.3130.98
FB Master /wp-admin/admin.php?page=facebook-master3.2630.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_facebook_master_widget_viral
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_facebook_master_widget_basic

Browser metrics Passed 4 tests

A check of browser resources used by TechGasp Networking Master
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.26 ▼1.361.67 ▼0.1638.45 ▼10.54
Dashboard /wp-admin2,233 ▲425.79 ▲0.9192.31 ▼9.5192.29 ▲51.94
Posts /wp-admin/edit.php2,119 ▲302.03 ▼0.0135.80 ▲2.1333.76 ▲2.15
Add New Post /wp-admin/post-new.php1,692 ▲17322.47 ▼0.90726.68 ▲51.2749.28 ▼3.74
Media Library /wp-admin/upload.php1,418 ▲334.22 ▼0.0099.03 ▼5.7476.30 ▲30.31
Settings /wp-admin/admin.php?page=facebook-master-admin-settings-wide9502.0326.0228.75
Add-ons /wp-admin/admin.php?page=facebook-master-admin-addons1,1762.0125.5234.11
FB Master /wp-admin/admin.php?page=facebook-master1,7768.22200.6286.27

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
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_facebook_master_widget_viral
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_facebook_master_widget_basic

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-master/includes/facebook-master-widget-basic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/facebook-master/includes/facebook-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/facebook-master/facebook-master.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/facebook-master/includes/facebook-master-admin-settings-wide.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/facebook-master/includes/facebook-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/facebook-master/includes/facebook-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/facebook-master/includes/facebook-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/facebook-master/includes/facebook-master-admin-settings-wide-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/facebook-master/includes/facebook-master-widget-viral.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/facebook-master/includes/facebook-master-admin-settings-wide-table-options.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=facebook-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=facebook-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=facebook-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/aHGdUlnkmHl.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=facebook-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/aHGdUlnkmHl.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

facebook-master/facebook-master.php 92% from 13 tests

Analyzing the main PHP file in "TechGasp Networking Master" version 5.1.4
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin789 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP134384789

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity6.38
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.28MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%
images/techgasp-admin-addons-shortcodes.png21.28KB20.24KB▼ 4.91%
images/techgasp-hr.png0.94KB0.13KB▼ 86.60%
images/techgasp-check-yes.png22.22KB7.59KB▼ 65.83%
images/techgasp-admin-addons-updater.png14.03KB13.02KB▼ 7.21%