84% social-feed-lite

Code Review | Social Feed Lite

WordPress plugin Social Feed Lite scored84%from 54 tests.

About plugin

  • Plugin page: social-feed-lite
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 1, 2022
  • Latest release: Jun 1, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wphelpline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Social Feed Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.13238.28 ▲199.36
Dashboard /wp-admin3.42 ▲0.08245.62 ▲183.51
Posts /wp-admin/edit.php3.47 ▲0.12238.96 ▲187.85
Add New Post /wp-admin/post-new.php5.94 ▲0.06302.19 ▲198.91
Media Library /wp-admin/upload.php3.28 ▲0.06238.31 ▲201.88
Customize Feed /wp-admin/admin.php?page=social_feed_lite-info3.25231.38
Connect Instagram /wp-admin/admin.php?page=social_feed_lite-settings3.25221.07

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Social Feed Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.00 ▼0.281.84 ▼0.1544.77 ▲0.98
Dashboard /wp-admin2,218 ▲385.60 ▼0.2183.37 ▼6.4446.69 ▲3.69
Posts /wp-admin/edit.php2,123 ▲201.94 ▼0.0839.77 ▼3.5936.75 ▲0.78
Add New Post /wp-admin/post-new.php1,546 ▲2020.98 ▼2.05670.99 ▼59.8765.44 ▲1.57
Media Library /wp-admin/upload.php1,423 ▲234.18 ▼0.04105.20 ▼3.3049.42 ▲3.66
Customize Feed /wp-admin/admin.php?page=social_feed_lite-info8022.1326.4929.77
Connect Instagram /wp-admin/admin.php?page=social_feed_lite-settings7902.0023.8823.89

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-feed-lite/includes/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/social-feed-lite/social-feed-lite.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
Please take inspiration from this readme.txt

social-feed-lite/social-feed-lite.php Passed 13 tests

The primary PHP file in "Social Feed Lite" version 1.0.0 is used by WordPress to initiate all plugin functionality
76 characters long description:
Lightweight plugin to show Instagram posts. Use shortcode [social_feed_lite]

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 plugin214 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28727203
CSS110011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin