83% kona-instagram-feed-for-gutenberg

Code Review | Kona Gallery Block

WordPress plugin Kona Gallery Block scored83%from 54 tests.

About plugin

  • Plugin page: kona-instagram-fe...
  • Plugin version: 1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 19, 2018
  • Latest release: Jul 30, 2020
  • Number of updates: 37
  • Update frequency: every 20.1 days
  • Top authors: gubbigubbi (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /22,418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.70ms] Passed 4 tests

Analyzing server-side resources used by Kona Gallery Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.60 ▲1.10
Dashboard /wp-admin3.33 ▼0.0150.83 ▼16.58
Posts /wp-admin/edit.php3.38 ▲0.0353.52 ▲1.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.71 ▼11.98
Media Library /wp-admin/upload.php3.26 ▲0.0338.69 ▲0.67

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Kona Gallery Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲2814.40 ▲0.121.59 ▼0.3539.54 ▼0.19
Dashboard /wp-admin2,198 ▲185.59 ▼0.0789.43 ▲1.7039.42 ▼0.28
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0540.73 ▲5.7436.25 ▲1.47
Add New Post /wp-admin/post-new.php6,366 ▲4,82927.61 ▲9.36872.57 ▲249.0155.44 ▼10.72
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0195.61 ▼13.3342.90 ▼4.78

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kona-instagram-feed-for-gutenberg/src/server.php:51

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #2, #3 in kona-instagram-feed-for-gutenberg/assets to your readme.txt
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === kona-instagram-feed-for-gutenberg === )
The official readme.txt might help

kona-instagram-feed-for-gutenberg/plugin.php 92% from 13 tests

"Kona Gallery Block" version 1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kona-instagram-feed-for-gutenberg.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected199 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP33687167
SVG21130
CSS1001
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin