83% social-photo-feed-for-elementor

Code Review | Social photo feed for Elementor

WordPress plugin Social photo feed for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: social-photo-feed...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.0
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Oct 9, 2023
  • Number of updates: 4
  • Update frequency: every 58.7 days
  • Top authors: migaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /203 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.44ms] Passed 4 tests

Server-side resources used by Social photo feed for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.57 ▼7.91
Dashboard /wp-admin3.36 ▲0.0646.16 ▼4.62
Posts /wp-admin/edit.php3.41 ▲0.0642.46 ▼8.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.17 ▼4.93
Media Library /wp-admin/upload.php3.28 ▲0.0639.75 ▲5.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Social photo feed for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.56 ▼0.811.65 ▼0.2040.84 ▼1.28
Dashboard /wp-admin2,225 ▲375.86 ▼0.0299.63 ▼10.6845.02 ▼3.40
Posts /wp-admin/edit.php2,102 ▲162.04 ▲0.0538.24 ▼0.3933.70 ▼2.61
Add New Post /wp-admin/post-new.php1,546 ▲2423.29 ▲0.25663.77 ▼4.4258.96 ▲4.37
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.1397.78 ▼14.4843.97 ▼7.78

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
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-photo-feed-for-elementor/includes/cron_jobs.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/social-photo-feed-for-elementor/widget/instagram_feed.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-photo-feed-for-elementor/includes/cron_jobs.php:11

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Backend), #2 (Elementor), #3 (Frontend)
You can take inspiration from this readme.txt

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

The principal PHP file in "Social photo feed for Elementor" v. 1.2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("social-photo-feed-for-elementor.php" instead of "elementor_instragram.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin777 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP59619711
CSS112066

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin