84% snapwidget-wp-instagram-widget

Code Review | SnapWidget Social Photo Feed Widget

WordPress plugin SnapWidget Social Photo Feed Widget scored 84% from 54 tests.

About plugin

  • Plugin page: snapwidget-wp-ins...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6.2
  • WordPress version: 5.8.1
  • First release: Jul 26, 2018
  • Latest release: Feb 25, 2021
  • Number of updates: 25
  • Update frequency: every 37.8 days
  • Top authors: snapwidget (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 11,436 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼139.99ms] Passed 4 tests

A check of server-side resources used by SnapWidget Social Photo Feed Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1531.17 ▲10.73
Dashboard /wp-admin3.09 ▲0.0447.18 ▲13.78
Posts /wp-admin/edit.php3.14 ▲0.0437.83 ▼1.60
Add New Post /wp-admin/post-new.php5.45 ▲0.0288.73 ▼567.45
Media Library /wp-admin/upload.php3.03 ▲0.0331.93 ▼1.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_null-snapwidget-instagram-feed

Browser metrics Passed 4 tests

This is an overview of browser requirements for SnapWidget Social Photo Feed Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.00 ▲0.3210.56 ▲1.6549.83 ▼0.78
Dashboard /wp-admin2,967 ▲365.89 ▼0.10139.49 ▼13.86108.10 ▼5.81
Posts /wp-admin/edit.php2,739 ▼02.84 ▲0.1365.74 ▲3.5692.69 ▼1.44
Add New Post /wp-admin/post-new.php1,500 ▼11518.56 ▼3.36365.40 ▲97.16107.23 ▲2.03
Media Library /wp-admin/upload.php1,807 ▲35.04 ▼0.01150.87 ▲0.78123.79 ▲4.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_null-snapwidget-instagram-feed

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/snapwidget-wp-instagram-widget/snapwidget-wp-instagram-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: sidebar, photos, snapwidget, instagram, simple...

snapwidget-wp-instagram-widget/snapwidget-wp-instagram-widget.php 92% from 13 tests

The entry point to "SnapWidget Social Photo Feed Widget" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

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
Everything looks great! No dangerous files found in this plugin106 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22015106

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin