84% wp-my-instagram

Code Review | WP Instant Feeds

WordPress plugin WP Instant Feeds scored84%from 54 tests.

About plugin

  • Plugin page: wp-my-instagram
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.5.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2017
  • Latest release: Sep 2, 2020
  • Number of updates: 36
  • Update frequency: every 32.8 days
  • Top authors: mnmlthms (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

10,000+ active /110,963 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.14MB] [CPU: ▼13.50ms] Passed 4 tests

Server-side resources used by WP Instant Feeds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1644.88 ▼4.03
Dashboard /wp-admin3.45 ▲0.1155.15 ▼16.79
Posts /wp-admin/edit.php3.57 ▲0.2156.74 ▼7.13
Add New Post /wp-admin/post-new.php6.04 ▲0.1587.46 ▼26.05
Media Library /wp-admin/upload.php3.38 ▲0.1543.00 ▲4.01

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Instant Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.21 ▼0.141.64 ▼0.3438.41 ▼7.31
Dashboard /wp-admin2,198 ▲245.65 ▲0.1187.17 ▼12.6640.47 ▼4.94
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0339.48 ▼0.5735.72 ▼1.80
Add New Post /wp-admin/post-new.php1,526 ▼723.49 ▲0.24682.64 ▼11.4656.42 ▲1.98
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.0394.84 ▼5.1442.08 ▼1.60

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 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_wp_my_instagram
    • widget_theysaidso_widget

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-my-instagram/inc/templates/item.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: widget, instagram

wp-my-instagram/wp-my-instagram.php 92% from 13 tests

The main file in "WP Instant Feeds" v. 1.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/assets/languages/" does not exist

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
Success! There were no dangerous files found in this plugin718 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6186218526
JavaScript2492796
Sass15069
CSS23116
JSON10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity37.33
▷ Minimum class complexity17.00
▷ Maximum class complexity66.00
Average method complexity4.89
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods28
▷ Static methods1553.57%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected