78% still-be-combine-social-photos

Code Review | Combine Social Photos | Still BE

WordPress plugin Combine Social Photos | Still BE scored78%from 54 tests.

About plugin

  • Plugin page: still-be-combine-...
  • Plugin version: 0.13.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2022
  • Latest release: Nov 20, 2023
  • Number of updates: 59
  • Update frequency: every 10.0 days
  • Top authors: analogstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,272 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
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.11ms] Passed 4 tests

Server-side resources used by Combine Social Photos | Still BE
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.11 ▼1.70
Dashboard /wp-admin3.53 ▲0.1847.21 ▼13.12
Posts /wp-admin/edit.php3.58 ▲0.2351.54 ▲5.80
Add New Post /wp-admin/post-new.php6.08 ▲0.1993.47 ▲10.05
Media Library /wp-admin/upload.php3.37 ▲0.1432.36 ▲0.57
Instagram /wp-admin/options-general.php?page=sb-csp-setting-page3.3737.39

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Combine Social Photos | Still BE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲16314.21 ▼0.161.70 ▼0.3943.41 ▼1.44
Dashboard /wp-admin2,347 ▲1706.14 ▲0.51118.30 ▲24.0443.09 ▲0.56
Posts /wp-admin/edit.php2,275 ▲1783.39 ▲1.4154.41 ▲16.3535.48 ▼0.60
Add New Post /wp-admin/post-new.php6,386 ▲4,86027.80 ▲4.69928.57 ▲234.2038.45 ▼20.92
Media Library /wp-admin/upload.php1,409 ▲64.04 ▼0.1985.56 ▼17.3744.51 ▲1.57
Instagram /wp-admin/options-general.php?page=sb-csp-setting-page1,2463.1044.1741.85

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/still-be-combine-social-photos/templates/template-modal.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/still-be-combine-social-photos/templates/template-modal.php on line 26

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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: instagram gallery, block, instagram, instagram widget, gutenberg...

still-be-combine-social-photos/still-be-combine-social-photos.php 92% from 13 tests

The entry point to "Combine Social Photos | Still BE" version 0.13.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

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 plugin9,251 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript56234383,501
PHP151,2326203,468
CSS6169391,839
JSON2540434
SVG7009

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity45.11
▷ Minimum class complexity4.00
▷ Maximum class complexity120.00
Average method complexity6.42
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces1
Interfaces0
Traits1
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes787.50%
Methods70
▷ Static methods3448.57%
▷ Public methods5578.57%
▷ Protected methods00.00%
▷ Private methods1521.43%
Functions20
▷ Named functions210.00%
▷ Anonymous functions1890.00%
Constants68
▷ Global constants68.82%
▷ Class constants6291.18%
▷ Public constants62100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/img/thumb-cache-expired.png8.63KB7.37KB▼ 14.64%
asset/img/thumb-go-ig.png13.27KB11.95KB▼ 9.95%
asset/img/thumb-video.png8.84KB7.14KB▼ 19.20%
asset/img/ig-icon.png2.50KB2.50KB0.04%