67% inavii-social-feed-for-elementor

Code Review | Inavii for Elementor Social Feed

WordPress plugin Inavii for Elementor Social Feed scored67%from 54 tests.

About plugin

  • Plugin page: inavii-social-fee...
  • Plugin version: 2.3.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Dec 11, 2022
  • Latest release: Nov 28, 2023
  • Number of updates: 50
  • Update frequency: every 7.1 days
  • Top authors: inavii (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /7,470 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲5.56MB] [CPU: ▲30.11ms] 75% from 4 tests

An overview of server-side resources used by Inavii for Elementor Social Feed
It is recommended to improve the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.56MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.32 ▲5.8567.35 ▲29.36
Dashboard /wp-admin9.34 ▲6.0373.48 ▲26.87
Posts /wp-admin/edit.php9.34 ▲5.9884.51 ▲37.80
Add New Post /wp-admin/post-new.php10.24 ▲4.36120.43 ▲26.39
Media Library /wp-admin/upload.php9.34 ▲6.1173.75 ▲41.73
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.3465.11

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,137 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-comments
inavii_social_feed_e_version
can_compress_scripts
fs_accounts
widget_recent-posts
fs_active_plugins
fs_debug_mode
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Inavii for Elementor Social Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8414.18 ▼0.561.70 ▲0.0627.59 ▼13.24
Dashboard /wp-admin2,245 ▲685.52 ▼0.1598.06 ▼3.2345.69 ▲0.72
Posts /wp-admin/edit.php2,151 ▲482.00 ▲0.0541.32 ▲1.3540.54 ▲2.56
Add New Post /wp-admin/post-new.php1,549 ▲2023.15 ▼0.02637.25 ▲4.5054.13 ▼4.90
Media Library /wp-admin/upload.php1,450 ▲504.20 ▲0.0997.62 ▼0.6344.61 ▲4.58
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1021.6627.3529.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/inavii-social-feed-for-elementor/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • fs_debug_mode
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • fs_active_plugins
    • widget_theysaidso_widget
    • can_compress_scripts
    • fs_accounts
    • inavii_social_feed_e_version

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/inavii-social-feed-for-elementor/vendor/deliciousbrains/wp-background-processing/tests/bootstrap.php
    • > /wp-content/plugins/inavii-social-feed-for-elementor/vendor/timber/timber/tests/assets/my-sidebar.php
  • 387× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/inavii-social-feed-for-elementor/core/RestApi/EndPoints/Media/ImporterMediaProcessor.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/composer/installers/src/Composer/Installers/YawikInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/deliciousbrains/wp-background-processing/tests/Test_Setup.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Timber_UnitTestCase' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/timber/timber/tests/test-timber-term-getter.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Timber_UnitTestCase' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/timber/timber/tests/test-timber-image-tojpg.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Timber\\Core' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/timber/timber/lib/Archives.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/twig/twig/src/TokenParser/SpacelessTokenParser.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/inavii-social-feed-for-elementor/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

inavii-social-feed-for-elementor/inavii-social-feed-for-elementor.php 85% from 13 tests

The main PHP file in "Inavii for Elementor Social Feed" ver. 2.3.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 231 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected82,471 lines of code in 1,019 files:
LanguageFilesBlank linesComment linesLines of code
PHP84216,53629,55276,109
Markdown471,54603,703
YAML1714016739
Twig62360598
PO File4166304438
Bourne Shell35521288
XML112667246
JavaScript83575199
SVG512067
CSS18114558
make14014
reStructuredText19512

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity11.13
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces65
Interfaces22
Traits2
Classes738
▷ Abstract classes202.71%
▷ Concrete classes71897.29%
▷ Final classes537.38%
Methods4,258
▷ Static methods54612.82%
▷ Public methods3,47481.59%
▷ Protected methods2656.22%
▷ Private methods51912.19%
Functions433
▷ Named functions27363.05%
▷ Anonymous functions16036.95%
Constants260
▷ Global constants11945.77%
▷ Class constants14154.23%
▷ Public constants13897.87%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 1.40MB with 0.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
vendor/timber/timber/tests/assets/cropper.png15.74KB0.31KB▼ 98.01%
vendor/timber/timber/tests/assets/eastern-trans.png12.34KB7.39KB▼ 40.11%
assets/react/static/media/inavii-row.11054a163730cf60ee4a.png85.21KB25.80KB▼ 69.72%
assets/react/static/media/inavii-masonry-vertical.23c4a8dd0014ac0dbd87.png107.69KB29.13KB▼ 72.94%