67% gs-instagram-portfolio

Code Review | GS Insever Portfolio

WordPress plugin GS Insever Portfolio scored 67% from 54 tests.

About plugin

  • Plugin page: gs-instagram-port...
  • Plugin version: 1.4.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.8
  • WordPress version: 6.3.1
  • First release: Feb 1, 2017
  • Latest release: Apr 8, 2023
  • Number of updates: 35
  • Update frequency: every 64.4 days
  • Top authors: samdani (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 9,246 total downloads

Benchmarks

Plugin footprint 65% 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.04MB] [CPU: ▼1.56ms] 75% from 4 tests

Server-side resources used by GS Insever Portfolio
Please fix the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 671.37ms on /wp-admin/admin.php?page=gs-plugins-free)
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.58 ▼4.55
Dashboard /wp-admin3.34 ▲0.0452.49 ▲3.18
Posts /wp-admin/edit.php3.39 ▲0.0452.42 ▲3.90
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.33 ▼1.67
Media Library /wp-admin/upload.php3.26 ▲0.0336.00 ▼3.20
Instagram Settings /wp-admin/admin.php?page=gs-instagram-settings3.2332.58
GS Plugins /wp-admin/admin.php?page=gsp-main3.42987.90
GS Plugins FREE /wp-admin/admin.php?page=gs-plugins-free3.36671.37

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 62 new files
Database: 1 new table, 6 new options
New tables
wp_gs_instagram_themes
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for GS Insever Portfolio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲22113.55 ▼0.825.16 ▲3.3547.73 ▼1.55
Dashboard /wp-admin2,258 ▲705.87 ▲0.97108.89 ▼4.0642.33 ▼4.25
Posts /wp-admin/edit.php2,144 ▲552.04 ▲0.0337.19 ▲1.9434.28 ▲3.05
Add New Post /wp-admin/post-new.php1,586 ▲5223.36 ▲0.10625.28 ▼39.8742.40 ▼10.68
Media Library /wp-admin/upload.php1,443 ▲554.24 ▲0.0397.74 ▼3.3842.88 ▼1.87
Instagram Settings /wp-admin/admin.php?page=gs-instagram-settings8964.55138.6244.02
GS Plugins /wp-admin/admin.php?page=gsp-main1,9342.0427.3355.24
GS Plugins FREE /wp-admin/admin.php?page=gs-plugins-free2,7022.0325.7641.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_gs_instagram_themes
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Trait 'GS_Instagram\\Backend\\AjaxThemeHelper' not found in wp-content/plugins/gs-instagram-portfolio/admin/includes/Ajax.php on line 8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=gsp-main
    • > Network (severe)
    cdn-cgi/rum? - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt might help

gs-instagram-portfolio/gs-instagram-portfolio.php 85% from 13 tests

The entry point to "GS Insever Portfolio" version 1.4.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 331 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin91,974 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2916,99013,89777,904
JSON3009,982
PHP196588492,333
CSS37042981
Sass7762774

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.84
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes15.56%
Methods156
▷ Static methods85.13%
▷ Public methods9158.33%
▷ Protected methods63.85%
▷ Private methods5937.82%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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 are no PNG files in this plugin