84% jinx-block-renderer

Code Review | Jinx-Block-Renderer

WordPress plugin Jinx-Block-Renderer scored84%from 54 tests.

About plugin

  • Plugin page: jinx-block-renderer
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2020
  • Latest release: Dec 3, 2020
  • Number of updates: 8
  • Update frequency: every 14.1 days
  • Top authors: Lugat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /455 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Jinx-Block-Renderer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.62 ▼2.40
Dashboard /wp-admin3.34 ▼0.0145.67 ▼18.88
Posts /wp-admin/edit.php3.45 ▲0.0948.81 ▲1.53
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.43 ▼21.41
Media Library /wp-admin/upload.php3.26 ▲0.0336.54 ▲1.02

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Jinx-Block-Renderer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.421.62 ▼0.2842.68 ▼1.02
Dashboard /wp-admin2,209 ▲185.85 ▲0.9497.74 ▼9.1636.06 ▼9.82
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0737.96 ▼15.4735.04 ▼1.43
Add New Post /wp-admin/post-new.php1,546 ▲1323.28 ▼0.06669.38 ▲45.8154.15 ▲3.62
Media Library /wp-admin/upload.php1,385 ▼64.22 ▼0.0092.37 ▼8.5240.84 ▼2.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Jinx\\BlockRenderer\\Component' not found in wp-content/plugins/jinx-block-renderer/src/Renderer.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/jinx-block-renderer/index.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Jinx\\BlockRenderer\\Component' not found in wp-content/plugins/jinx-block-renderer/src/Field.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: template, manipulate, blocks, gutenberg

jinx-block-renderer/index.php 85% from 13 tests

This is the main PHP file of "Jinx-Block-Renderer" version 0.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("jinx-block-renderer.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin200 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP51249200

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity18.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods853.33%
▷ Protected methods746.67%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin