89% creative-instagram

Code Review | Social Portfolio Feed

WordPress plugin Social Portfolio Feed scored89%from 54 tests.

About plugin

  • Plugin page: creative-instagram
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.6.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Feb 11, 2021
  • Number of updates: 87
  • Update frequency: every 21.2 days
  • Top authors: webdzier (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /13,224 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.09MB] [CPU: ▼3.84ms] Passed 4 tests

An overview of server-side resources used by Social Portfolio Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0944.71 ▲2.03
Dashboard /wp-admin3.39 ▲0.0946.98 ▼1.73
Posts /wp-admin/edit.php3.51 ▲0.1548.09 ▼6.58
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.14 ▼8.43
Media Library /wp-admin/upload.php3.32 ▲0.0935.64 ▲1.38
Settings /wp-admin/admin.php?page=spf_setings3.2831.03
Social Portfolio Feed /wp-admin/admin.php?page=social-portfolio-feed3.2830.70

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Social Portfolio Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲20413.61 ▼0.809.24 ▲7.3942.14 ▲2.79
Dashboard /wp-admin2,232 ▲415.85 ▲0.96103.91 ▼10.2337.30 ▼4.96
Posts /wp-admin/edit.php2,123 ▲342.19 ▲0.1441.30 ▲1.5035.98 ▲0.38
Add New Post /wp-admin/post-new.php1,539 ▲623.00 ▼0.11609.37 ▼101.5151.05 ▼1.79
Media Library /wp-admin/upload.php1,425 ▲374.24 ▲0.0398.22 ▼8.2144.28 ▼2.74
Settings /wp-admin/admin.php?page=spf_setings7932.0524.7220.94
Social Portfolio Feed /wp-admin/admin.php?page=social-portfolio-feed8292.0723.8724.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 33 tag instead of maximum 10
You can take inspiration from this readme.txt

creative-instagram/social-portfolio-feed.php 85% from 13 tests

The main PHP script in "Social Portfolio Feed" version 2.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("creative-instagram.php" instead of "social-portfolio-feed.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,358 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS37102,229
SVG100685
PHP323016408
JavaScript122036

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.67
▷ Minimum class complexity10.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods12.86%
▷ Public methods3188.57%
▷ Protected methods38.57%
▷ Private methods12.86%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/instagram.png0.88KB1.05KB0.00%