78% feed-by-fhoke

Code Review | Feed by Fhoke

WordPress plugin Feed by Fhoke scored78%from 54 tests.

About plugin

  • Plugin page: feed-by-fhoke
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: Mar 21, 2023
  • Number of updates: 26
  • Update frequency: every 40.7 days
  • Top authors: FHOKE (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /968 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▲1.33ms] Passed 4 tests

Analyzing server-side resources used by Feed by Fhoke
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1742.51 ▼0.10
Dashboard /wp-admin3.57 ▲0.2754.13 ▼0.01
Posts /wp-admin/edit.php3.63 ▲0.2757.22 ▲4.58
Add New Post /wp-admin/post-new.php6.09 ▲0.21107.35 ▲10.01
Media Library /wp-admin/upload.php3.44 ▲0.2141.68 ▲0.83
Feed by Fhoke /wp-admin/options-general.php?page=feed-by-fhoke3.4036.51

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 167 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Feed by Fhoke: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.27 ▼1.321.90 ▼0.0342.76 ▼4.31
Dashboard /wp-admin2,246 ▲585.86 ▲0.97104.28 ▼11.3474.49 ▲28.29
Posts /wp-admin/edit.php2,128 ▲392.03 ▲0.0137.80 ▼1.4935.77 ▼0.25
Add New Post /wp-admin/post-new.php1,560 ▲2723.23 ▲0.07734.46 ▲55.1363.44 ▲3.99
Media Library /wp-admin/upload.php1,425 ▲404.27 ▲0.06106.15 ▲1.2371.29 ▲24.66
Feed by Fhoke /wp-admin/options-general.php?page=feed-by-fhoke1,0492.0130.64117.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/feed-by-fhoke/helpers.php
    • > /wp-content/plugins/feed-by-fhoke/options.php
    • > /wp-content/plugins/feed-by-fhoke/FeedByFhoke.php
    • > /wp-content/plugins/feed-by-fhoke/setup.php
  • 49× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/psr7/src/BufferStream.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/promises/src/Promise.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/psr7/src/Request.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/psr7/src/LimitStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/feed-by-fhoke/vendor/guzzlehttp/promises/src/Coroutine.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 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: feed by fhoke, instagram posts, instagram feed, fhoke, instagram photos

feed-by-fhoke/FeedByFhoke.php 85% from 13 tests

The entry point to "Feed by Fhoke" version 1.3.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("feed-by-fhoke.php" instead of "FeedByFhoke.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("7.3.5" instead of "7.4")

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
Everything looks great! No dangerous files found in this plugin16,315 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
PHP1262,1816,07010,712
Markdown151,27803,664
JSON9001,040
CSS2310886
YAML1007
SVG2006

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity13.48
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces12
Interfaces26
Traits3
Classes79
▷ Abstract classes00.00%
▷ Concrete classes79100.00%
▷ Final classes3544.30%
Methods767
▷ Static methods14518.90%
▷ Public methods63582.79%
▷ Protected methods182.35%
▷ Private methods11414.86%
Functions139
▷ Named functions4633.09%
▷ Anonymous functions9366.91%
Constants69
▷ Global constants68.70%
▷ Class constants6391.30%
▷ Public constants5282.54%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected