78% team-feed

Code Review | Team Feed plugin

WordPress plugin Team Feed plugin scored78%from 54 tests.

About plugin

  • Plugin page: team-feed
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: Jun 1, 2016
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: egirna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,105 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.09MB] [CPU: ▼13.11ms] Passed 4 tests

Server-side resources used by Team Feed plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.65 ▼4.16
Dashboard /wp-admin3.41 ▲0.0346.50 ▼38.10
Posts /wp-admin/edit.php3.52 ▲0.1746.23 ▼5.74
Add New Post /wp-admin/post-new.php6.01 ▲0.1397.75 ▼4.42
Media Library /wp-admin/upload.php3.33 ▲0.1135.31 ▲2.65
Team Feed /wp-admin/options-general.php?page=team-feed3.3133.52

Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Team Feed plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.67 ▼0.717.89 ▲6.0439.35 ▼15.57
Dashboard /wp-admin2,216 ▲284.87 ▼0.05100.14 ▼17.2136.50 ▼4.64
Posts /wp-admin/edit.php2,096 ▲42.04 ▼0.0133.69 ▼12.3534.54 ▼9.52
Add New Post /wp-admin/post-new.php1,523 ▼1317.43 ▼5.77677.44 ▲62.8658.26 ▲5.71
Media Library /wp-admin/upload.php1,398 ▲74.18 ▼0.03101.26 ▲3.3840.51 ▼2.94
Team Feed /wp-admin/options-general.php?page=team-feed8732.1823.9127.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_team_feed_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/team-feed/public/partials/team-feed-public-display.php
    • > /wp-content/plugins/team-feed/trunk/public/partials/team-feed-public-display.php
  • 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/team-feed/trunk/admin/partials/apis/team-feed-admin-channels-list.php on line 16
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/team-feed/trunk/public/partials/apis/team-feed-public-channel-history.php on line 15
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/team-feed/trunk/admin/partials/apis/team-feed-admin-channels-list.php on line 16
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/team-feed/public/partials/apis/team-feed-public-channel-history.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/team-feed/admin/partials/apis/team-feed-admin-access-token.php:19
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/team-feed/trunk/public/partials/apis/team-feed-public-channel-history.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/team-feed/public/partials/apis/team-feed-public-channel-history.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/team-feed/public/partials/apis/team-feed-public-channel-history.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/team-feed/trunk/admin/partials/apis/team-feed-admin-access-token.php:19
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/team-feed/admin/partials/apis/team-feed-admin-channels-list.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (30 tag instead of maximum 10)
You can look at the official readme.txt

team-feed/team-feed.php Passed 13 tests

The main file in "Team Feed plugin" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
136 characters long description:
Get your slack history channels and share comments, photos, videos and attachment files with your friends on your website widget sidebar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin835 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP19231719649
CSS33511154
JavaScript5136932

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity1.75
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.16
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods76
▷ Static methods45.26%
▷ Public methods6686.84%
▷ Protected methods00.00%
▷ Private methods1013.16%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin