84% koji-block-embed-block-for-koji-apps

Code Review | Koji Block - Embed Block for Koji Apps

WordPress plugin Koji Block - Embed Block for Koji Apps scored84%from 54 tests.

About plugin

  • Plugin page: koji-block-embed-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.9
  • WordPress version: 6.3.1
  • First release: Mar 4, 2022
  • Latest release: Mar 11, 2022
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: withkoji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /611 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲2.69ms] Passed 4 tests

Server-side resources used by Koji Block - Embed Block for Koji Apps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.68 ▼2.17
Dashboard /wp-admin3.32 ▲0.0151.22 ▲3.48
Posts /wp-admin/edit.php3.37 ▲0.0153.48 ▲7.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.40 ▲8.79
Media Library /wp-admin/upload.php3.24 ▲0.0136.51 ▲2.12

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

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

Browser metrics Passed 4 tests

Koji Block - Embed Block for Koji Apps: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10914.06 ▼0.6929.24 ▲27.2138.41 ▼13.00
Dashboard /wp-admin2,206 ▲185.85 ▲0.00100.64 ▼3.6442.29 ▲4.51
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0346.95 ▲5.9644.34 ▲8.38
Add New Post /wp-admin/post-new.php6,594 ▲5,08024.52 ▲6.91901.54 ▲242.2437.90 ▼21.99
Media Library /wp-admin/upload.php1,391 ▲34.19 ▲0.0198.92 ▼1.3241.38 ▼1.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/koji-block-embed-block-for-koji-apps/init.php:46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/koji-block-embed-block-for-koji-apps/init.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: koji, block, gutenberg editor, gutenberg block, app block

koji-block-embed-block-for-koji-apps/index.php 85% from 13 tests

"Koji Block - Embed Block for Koji Apps" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("koji-block-embed-block-for-koji-apps.php" instead of "index.php")

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
No dangerous file extensions were detected34,882 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JSON30032,300
JavaScript22377342,343
CSS2335184
PHP411939
Markdown18016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin