78% instagram-master

Code Review | TechGasp Photo Master

WordPress plugin TechGasp Photo Master scored78%from 54 tests.

About plugin

  • Plugin page: instagram-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: May 26, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 62
  • Update frequency: every 45.9 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

60+ active /35,948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼0.00ms] Passed 4 tests

This is a short check of server-side resources used by TechGasp Photo Master
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0843.87 ▲2.28
Dashboard /wp-admin3.39 ▲0.0854.39 ▲8.75
Posts /wp-admin/edit.php3.50 ▲0.1445.56 ▲0.78
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.93 ▼2.78
Media Library /wp-admin/upload.php3.31 ▲0.0842.40 ▼0.29
Add-ons /wp-admin/admin.php?page=instagram-master-admin-addons3.3129.05
Photo Master /wp-admin/admin.php?page=instagram-master3.2932.37

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_instagram_master_widget_buttons
widget_recent-posts
widget_theysaidso_widget
widget_instagram_master_widget_embed_basic
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for TechGasp Photo Master
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.35 ▼0.031.70 ▼0.0544.46 ▼2.89
Dashboard /wp-admin2,221 ▲405.51 ▼0.2190.00 ▼7.2077.88 ▲32.32
Posts /wp-admin/edit.php2,126 ▲292.12 ▲0.1135.87 ▲0.8932.94 ▼4.14
Add New Post /wp-admin/post-new.php1,701 ▲17222.09 ▼0.73731.09 ▲59.5242.61 ▼14.94
Media Library /wp-admin/upload.php1,423 ▲264.22 ▲0.08108.26 ▲5.0771.11 ▲27.89
Add-ons /wp-admin/admin.php?page=instagram-master-admin-addons1,0512.1122.8231.67
Photo Master /wp-admin/admin.php?page=instagram-master1,7808.12194.4599.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • widget_instagram_master_widget_embed_basic
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_instagram_master_widget_buttons

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/instagram-master/includes/instagram-master-admin-settings-wide-table-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/instagram-master/includes/instagram-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/instagram-master/includes/instagram-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instagram-master/includes/instagram-master-widget-embed-basic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/instagram-master/includes/instagram-master-admin-addons-table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/instagram-master/includes/instagram-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instagram-master/includes/instagram-master-widget-buttons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/instagram-master/includes/instagram-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/instagram-master/instagram-master.php:54

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/admin.php?page=instagram-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=instagram-master
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=instagram-master
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yQ/r/bnRvNSHX7Ev.js?_nc_x=Ij3Wp8lg5Kz 275 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=instagram-master
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yQ/r/bnRvNSHX7Ev.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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

instagram-master/instagram-master.php Passed 13 tests

"TechGasp Photo Master" version 5.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
123 characters long description:
TechGasp Photo Master let's your show your latest Instagram photos and View on Instagram Button inside any widget position.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin619 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP113778604
CSS10015

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
9 PNG files occupy 0.28MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-minilogo-16.png1.86KB0.92KB▼ 50.87%
images/techgasp-admin-addons-updater.png14.03KB13.02KB▼ 7.21%
images/techgasp-admin-addons-shortcodes.png21.28KB20.24KB▼ 4.91%
images/techgasp-admin-addons-widgets.png17.08KB16.02KB▼ 6.22%
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%