89% photofeed-block-by-gutena

Code Review | Gutena PhotoFeed

WordPress plugin Gutena PhotoFeed scored89%from 54 tests.

About plugin

  • Plugin page: photofeed-block-b...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Aug 3, 2022
  • Latest release: Feb 10, 2023
  • Number of updates: 7
  • Update frequency: every 27.4 days
  • Top authors: expresstech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,839 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.83ms] Passed 4 tests

Server-side resources used by Gutena PhotoFeed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.50 ▲0.33
Dashboard /wp-admin3.37 ▲0.0653.14 ▲6.81
Posts /wp-admin/edit.php3.42 ▲0.0647.92 ▼6.64
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.94 ▼16.05
Media Library /wp-admin/upload.php3.29 ▲0.0633.64 ▼4.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Gutena PhotoFeed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.74 ▲0.351.95 ▲0.1044.59 ▲4.04
Dashboard /wp-admin2,218 ▲125.83 ▲0.97103.00 ▼2.1343.89 ▲1.04
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0139.22 ▼2.4337.26 ▼1.69
Add New Post /wp-admin/post-new.php6,374 ▲4,82927.65 ▲4.41902.99 ▲237.8042.98 ▼12.25
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0198.61 ▼18.0640.91 ▼8.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: You can look at the official readme.txt

photofeed-block-by-gutena/photofeed-block-gutena.php 85% from 13 tests

The main file in "Gutena PhotoFeed" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("photofeed-block-by-gutena.php" instead of "photofeed-block-gutena.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected335 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP455114236
JSON10075
SVG50020
CSS2002
JavaScript2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.50
▷ Minimum class complexity9.00
▷ Maximum class complexity24.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/gutena/gutena-ecosys-onboard/assets/cta/bg.png6.31KB3.12KB▼ 50.59%