77% master-image-feed-elementor

Code Review | Master Image Feed for Elementor

WordPress plugin Master Image Feed for Elementor scored77%from 54 tests.

About plugin

  • Plugin page: master-image-feed...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Aug 23, 2023
  • Number of updates: 7
  • Update frequency: every 166.9 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /605 total downloads

Benchmarks

Plugin footprint 82% 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.49MB] [CPU: ▲608.28ms] 50% from 4 tests

This is a short check of server-side resources used by Master Image Feed for Elementor
It is recommended to improve the following
  • CPU: Total CPU usage must kept under 500.00ms (currently 654.33ms on /wp-admin/options-general.php?page=master-image-feed-elementor-recommended-plugins)
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 608.28ms on /wp-admin/options-general.php?page=master-image-feed-elementor-recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲0.74648.19 ▲611.52
Dashboard /wp-admin3.84 ▲0.54675.91 ▲623.63
Posts /wp-admin/edit.php3.97 ▲0.61664.13 ▲619.40
Add New Post /wp-admin/post-new.php6.08 ▲0.20688.22 ▲596.99
Media Library /wp-admin/upload.php3.84 ▲0.62642.07 ▲605.22
Recommended /wp-admin/options-general.php?page=master-image-feed-elementor-recommended-plugins3.82654.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, 14 new options
New WordPress options
widget_recent-comments
jltelimf_notice_subscribe
jltelimf_sheet_promo_data
jltelimf_notice_ask_for_rating
widget_theysaidso_widget
jltelimf_activation_time
jltelimf_notice_what_we_collect
can_compress_scripts
jltelimf_sheet_promo_data_hash
widget_recent-posts
...

Browser metrics Passed 4 tests

Checking browser requirements for Master Image Feed for Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,562 ▼1,17312.21 ▼2.105.62 ▲3.8136.86 ▼4.98
Dashboard /wp-admin852 ▼1,3331.38 ▼4.4913.00 ▼104.4223.07 ▼23.42
Posts /wp-admin/edit.php860 ▼1,2291.56 ▼0.448.87 ▼29.0422.25 ▼13.46
Add New Post /wp-admin/post-new.php585 ▼9291.73 ▼15.9020.49 ▼650.596.59 ▼47.59
Media Library /wp-admin/upload.php745 ▼6431.73 ▼2.4819.42 ▼74.5520.00 ▼24.03
Recommended /wp-admin/options-general.php?page=master-image-feed-elementor-recommended-plugins6801.536.9515.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 14 options in the database
    • jltelimf_sheet_promo_data
    • db_upgraded
    • jltelimf_notice_ask_for_rating
    • widget_recent-comments
    • theysaidso_admin_options
    • master_image_feed_elementor_version
    • jltelimf_notice_what_we_collect
    • recovery_mode_email_last_sent
    • jltelimf_sheet_promo_data_hash
    • widget_theysaidso_widget
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=master-image-feed-elementor-recommended-plugins
    • > Error in wp-content/plugins/master-image-feed-elementor/class-master-image-feed-elementor.php+104
    Uncaught Error: Call to undefined method JLTELIMF\JLT_Elementor_Image_Feed::is_elementor_activated() in wp-content/plugins/master-image-feed-elementor/class-master-image-feed-elementor.php:104
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): JLTELIMF\JLT_Elementor_Image_Feed->jltelimf_notice_missing_main_plugin()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin-header.php(303): do_action()
    #4 wp-admin/admin.php(239): require_once('/var/www/wordpr...')
    #5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #6 {main}
    thrown

SRP 50% 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
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'JLTELIMF\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/master-image-feed-elementor/Inc/Classes/Notifications/Upgrade_Notice.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'JLTELIMF\\Libs\\RowLinks' not found in wp-content/plugins/master-image-feed-elementor/Inc/Classes/Row_Links.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTELIMF\\Libs\\Recommended' not found in wp-content/plugins/master-image-feed-elementor/Inc/Classes/Recommended_Plugins.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTELIMF\\Libs\\Upgrader' not found in wp-content/plugins/master-image-feed-elementor/Inc/Classes/Upgrade_Plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTELIMF\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/master-image-feed-elementor/Inc/Classes/Notifications/Ask_For_Rating.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTELIMF\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/master-image-feed-elementor/Inc/Classes/Notifications/What_We_Collect.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/master-image-feed-elementor/master-image-feed-elementor.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'JLTELIMF\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/master-image-feed-elementor/Inc/Classes/Notifications/Subscribe.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: image slider, image card, image feed, image grid, image carousel...

master-image-feed-elementor/master-image-feed-elementor.php 85% from 13 tests

The principal PHP file in "Master Image Feed for Elementor" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: The domain path must begin with a forward slash character ("/languages/")

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
No dangerous file extensions were detected6,508 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP411,2381,5405,381
CSS513924841
JavaScript44234286

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.65
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces11
Interfaces0
Traits2
Classes29
▷ Abstract classes413.79%
▷ Concrete classes2586.21%
▷ Final classes28.00%
Methods224
▷ Static methods3314.73%
▷ Public methods21395.09%
▷ Protected methods94.02%
▷ Private methods20.89%
Functions21
▷ Named functions523.81%
▷ Anonymous functions1676.19%
Constants19
▷ Global constants1578.95%
▷ Class constants421.05%
▷ Public constants4100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.18MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/promo-image.png185.79KB0.00KB▼ 100.00%