84% meks-easy-instagram-widget

Code Review | Meks Easy Photo Feed Widget

WordPress plugin Meks Easy Photo Feed Widget scored 84% from 54 tests.

About plugin

  • Plugin page: meks-easy-instagr...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: Dec 7, 2017
  • Latest release: Sep 11, 2023
  • Number of updates: 50
  • Update frequency: every 42.1 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

30,000+ active / 363,797 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.85ms] Passed 4 tests

Analyzing server-side resources used by Meks Easy Photo Feed Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.63 ▼4.47
Dashboard /wp-admin3.34 ▲0.0445.94 ▼1.64
Posts /wp-admin/edit.php3.45 ▲0.1043.52 ▼10.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.25 ▼1.91
Media Library /wp-admin/upload.php3.26 ▲0.0332.65 ▼2.69
Meks Instagram Settings /wp-admin/options-general.php?page=meks-instagram3.2331.33

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Meks Easy Photo Feed Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.23 ▼1.121.67 ▼0.0238.46 ▼4.91
Dashboard /wp-admin2,211 ▲205.85 ▼0.0594.58 ▼8.2436.84 ▼4.17
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0334.92 ▼0.9730.54 ▼2.38
Add New Post /wp-admin/post-new.php1,530 ▼318.37 ▼5.26590.66 ▼70.1350.23 ▲0.29
Media Library /wp-admin/upload.php1,399 ▲144.36 ▲0.2495.60 ▼20.6340.48 ▼7.58
Meks Instagram Settings /wp-admin/options-general.php?page=meks-instagram8111.7225.2823.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_meks_instagram
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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 50% 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 take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/meks-easy-instagram-widget/inc/helpers.php:114
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/meks-easy-instagram-widget/inc/template-functions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function absint() in wp-content/plugins/meks-easy-instagram-widget/views/widget_html.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/meks-easy-instagram-widget/views/widget_admin_html.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/meks-easy-instagram-widget/inc/class-instagram-widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: images, widget, photos, instagram widget, instagram feed...

meks-easy-instagram-widget/meks-easy-instagram-widget.php Passed 13 tests

The entry point to "Meks Easy Photo Feed Widget" version 1.2.8 is a PHP file that has certain tags in its header comment area
92 characters long description:
Easily display Instagram photos as a widget that looks good in (almost) any WordPress theme.

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
No dangerous file extensions were detected1,109 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7337323777
JavaScript26117189
CSS3201143

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity42.50
▷ Minimum class complexity19.00
▷ Maximum class complexity66.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods2569.44%
▷ Protected methods925.00%
▷ Private methods25.56%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin