77% accesspress-instagram-feed

Code Review | AccessPress iFeeds

WordPress plugin AccessPress iFeeds scored 77% from 54 tests.

About plugin

  • Plugin page: accesspress-insta...
  • Plugin version: 4.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9
  • WordPress version: 5.8.1
  • First release: Jul 30, 2015
  • Latest release: Jan 28, 2022
  • Number of updates: 82
  • Update frequency: every 29.0 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

8,000+ active / 425,546 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼154.12ms] Passed 4 tests

This is a short check of server-side resources used by AccessPress iFeeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.99 ▲0.1529.68 ▲3.67
Dashboard /wp-admin3.21 ▲0.1436.36 ▼7.43
Posts /wp-admin/edit.php3.32 ▲0.2033.49 ▼7.07
Add New Post /wp-admin/post-new.php5.57 ▲0.1375.65 ▼602.76
Media Library /wp-admin/upload.php3.15 ▲0.1425.46 ▲0.77
Check Premium Version /wp-admin/admin.php?page=apif-premium2.8917.55
Documentation /wp-admin/admin.php?page=apif-doclinks2.8918.07
AccessPress iFeeds /wp-admin/admin.php?page=if-instagram-feed3.1531.04

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 3 new options
New WordPress options
apif_settings
widget_apif_sidewidget
widget_apif_widget

Browser metrics Passed 4 tests

AccessPress iFeeds: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,009 ▲35815.93 ▼0.0115.45 ▲8.7888.79 ▲7.05
Dashboard /wp-admin2,967 ▲686.13 ▼0.02113.80 ▼22.67190.11 ▲17.14
Posts /wp-admin/edit.php2,764 ▲243.13 ▼0.0963.68 ▲1.66133.97 ▼3.20
Add New Post /wp-admin/post-new.php3,760 ▲2518.74 ▲0.14418.54 ▼5.90176.08 ▲2.45
Media Library /wp-admin/upload.php1,788 ▲365.52 ▲0.03130.62 ▼9.78206.16 ▲22.90
Check Premium Version /wp-admin/admin.php?page=apif-premium4,00618.70586.17273.25
Documentation /wp-admin/admin.php?page=apif-doclinks1,3387.73297.24187.94
AccessPress iFeeds /wp-admin/admin.php?page=if-instagram-feed1,9974.32111.48213.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 3 options in the database
    • apif_settings
    • widget_apif_widget
    • widget_apif_sidewidget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 16× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/accesspress-instagram-feed/inc/frontend/instagram-widget.php
    • > /wp-content/plugins/accesspress-instagram-feed/inc/backend/widgetside.php
    • > /wp-content/plugins/accesspress-instagram-feed/inc/frontend/instagram-slider.php
    • > /wp-content/plugins/accesspress-instagram-feed/inc/backend/boards/display-settings.php
    • > /wp-content/plugins/accesspress-instagram-feed/accesspress-instagram-feed.php
    • > /wp-content/plugins/accesspress-instagram-feed/inc/backend/save-settings.php
    • > /wp-content/plugins/accesspress-instagram-feed/inc/frontend/instagram-masaic-light.php
    • > /wp-content/plugins/accesspress-instagram-feed/inc/backend/main-page.php
    • > /wp-content/plugins/accesspress-instagram-feed/inc/backend/boards/instagram-profiles.php
    • > /wp-content/plugins/accesspress-instagram-feed/inc/backend/widget.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=apif-premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/accesspress-instagram-feed-pro/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=apif-doclinks
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=apif-doclinks
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/accesspress-instagram-feeds/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please describe screenshot #5 in accesspress-instagram-feed/assets to your readme.txt
  • Screenshots: Add an image for screenshot #3 (Backend Settings Section)
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

accesspress-instagram-feed/accesspress-instagram-feed.php Passed 13 tests

Analyzing the main PHP file in "AccessPress iFeeds" version 4.0.5
60 characters long description:
Display feeds of your instagram using shortcode and widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin22,159 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
SVG30016,478
JavaScript77321,0372,658
CSS7107661,557
PHP171051581,466

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.75
▷ Minimum class complexity2.00
▷ Maximum class complexity56.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 2.63MB with 1.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/upgrade/ap-instagram-feeds-pro-advertisement1.png279.77KB0.00KB▼ 100.00%
images/aplite.png6.73KB3.22KB▼ 52.21%
images/close.png0.27KB0.29KB0.00%
images/upgrade/upgrade-top.png374.50KB129.37KB▼ 65.45%
images/logo.png4.15KB2.30KB▼ 44.60%