94% sixa-container-block

Code Review | sixa Container Block

WordPress plugin sixa Container Block scored 94% from 54 tests.

About plugin

  • Plugin page: sixa-container-block
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 5.9.2
  • First release: Dec 5, 2021
  • Latest release: Mar 25, 2022
  • Number of updates: 18
  • Update frequency: every 6.2 days
  • Top authors: sixa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 186 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼291.60ms] Passed 4 tests

Analyzing server-side resources used by sixa Container Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1653.26 ▲0.34
Dashboard /wp-admin3.52 ▲0.1134.13 ▲1.30
Posts /wp-admin/edit.php3.74 ▲0.1037.05 ▲0.03
Add New Post /wp-admin/post-new.php6.98 ▲0.0093.14 ▼1,164.91
Media Library /wp-admin/upload.php3.39 ▲0.0924.04 ▼1.87

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 126 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

sixa Container Block: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.94 ▲0.136.31 ▼0.072.41 ▼0.23
Dashboard /wp-admin2,895 ▲376.14 ▼0.12117.54 ▼17.02158.18 ▼0.57
Posts /wp-admin/edit.php2,694 ▲33.23 ▲0.0063.06 ▲1.55139.78 ▲5.68
Add New Post /wp-admin/post-new.php1,674 ▼4316.80 ▼4.31387.40 ▼110.16154.73 ▼3.01
Media Library /wp-admin/upload.php1,695 ▼35.49 ▼0.01138.02 ▼2.00179.98 ▼7.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/sixa-container-block/vendor/sixach/wp-snippets/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/sixa-container-block/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/sixa-container-block/trunk/vendor/sixach/wp-snippets/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/sixa-container-block/trunk/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
    • > PHP Warning
      require(wp-content/plugins/sixa-container-block/trunk/vendor/sixach/wp-snippets/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/sixa-container-block/trunk/vendor/sixach/wp-snippets/sixa-snippets.php on line 34
    • > PHP Warning
      require(wp-content/plugins/sixa-container-block/vendor/sixach/wp-snippets/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/sixa-container-block/vendor/sixach/wp-snippets/sixa-snippets.php on line 34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: gutenberg, section, wrapper, block, group...

sixa-container-block/index.php 85% from 13 tests

The main file in "sixa Container Block" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("sixa-container-block.php" instead of "index.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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
Everything looks great! No dangerous files found in this plugin4,376 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP418052,5023,595
PO File198160295
Markdown2990270
JSON200213
CSS2002
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity16.06
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes62
▷ Abstract classes812.90%
▷ Concrete classes5487.10%
▷ Final classes1018.52%
Methods400
▷ Static methods20050.00%
▷ Public methods32481.00%
▷ Protected methods5012.50%
▷ Private methods266.50%
Functions20
▷ Named functions210.00%
▷ Anonymous functions1890.00%
Constants24
▷ Global constants00.00%
▷ Class constants24100.00%
▷ Public constants2083.33%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected