84% ht-instagram

Code Review | HT Feed

WordPress plugin HT Feed scored84%from 54 tests.

About plugin

  • Plugin page: ht-instagram
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 31, 2018
  • Latest release: Aug 1, 2023
  • Number of updates: 39
  • Update frequency: every 43.0 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /26,500 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by HT Feed
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,329.78ms on /wp-admin/admin.php?page=htfeed-recommendations)
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4041.06 ▼3.44
Dashboard /wp-admin3.84 ▲0.5456.97 ▲8.42
Posts /wp-admin/edit.php3.90 ▲0.5460.69 ▲3.53
Add New Post /wp-admin/post-new.php6.36 ▲0.4786.84 ▼16.35
Media Library /wp-admin/upload.php3.68 ▲0.4544.26 ▲7.14
Recommendations /wp-admin/admin.php?page=htfeed-recommendations8.051,329.78
WP Instagram /wp-admin/admin.php?page=htinstagram3.6841.20

Server storage [IO: ▲1.51MB] [DB: ▲0.67MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 10 new options
New WordPress options
htinstagram_shortcodeopt_tabs
widget_recent-comments
widget_htinstagram_default_widgets
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
htinstagram_general_tabs
htinstagram_widgets_style_tabs
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by HT Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲24514.89 ▲0.721.84 ▲0.0745.26 ▲1.37
Dashboard /wp-admin2,378 ▲1966.62 ▲0.81128.27 ▲18.5297.24 ▲55.72
Posts /wp-admin/edit.php2,314 ▲2253.67 ▲1.6556.71 ▲21.2876.94 ▲40.74
Add New Post /wp-admin/post-new.php1,722 ▲20822.67 ▲5.04644.87 ▼19.8237.79 ▼28.23
Media Library /wp-admin/upload.php1,450 ▲624.48 ▲0.3088.76 ▼15.0177.91 ▲30.99
Recommendations /wp-admin/admin.php?page=htfeed-recommendations3,0833.4048.5891.66
WP Instagram /wp-admin/admin.php?page=htinstagram2,2424.5985.9476.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • widget_recent-posts
    • htinstagram_widgets_style_tabs
    • htinstagram_shortcodeopt_tabs
    • theysaidso_admin_options
    • widget_htinstagram_default_widgets
    • htinstagram_general_tabs
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Even though no errors were found, this is by no means 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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ht-instagram/include/default_widgets.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ht-instagram/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ht-instagram/include/vc_map.php:446
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Icons_Manager' not found in wp-content/plugins/ht-instagram/include/class.htinstagram-icon-manager.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ht-instagram/include/shortcode.php:197

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wordpress instagram, instagram feed, instagram, elementor, wp instagram

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

Analyzing the main PHP file in "HT Feed" version 1.2.8
75 characters long description:
The HT Feed is a elementor addons, Visul Composer addons, WordPress Widges.

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 plugin6,778 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP125863403,544
SVG2102,684
CSS42011381
JavaScript43739169

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity24.50
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods69
▷ Static methods57.25%
▷ Public methods6391.30%
▷ Protected methods45.80%
▷ Private methods22.90%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
25 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/extensions/ht-slider-addons-pro.png6.41KB4.35KB▼ 32.23%
(invalid) admin/assets/images/extensions/was-this-helpful.png1.21KB0.00KB▼ 100.00%
assests/images/extensions/htmega-pro.png4.60KB4.78KB0.00%
assests/images/menu-logo.png0.34KB0.24KB▼ 28.32%
(invalid) admin/assets/images/extensions/ht-menu.png2.85KB0.00KB▼ 100.00%