79% arkhe-blocks

Code Review | Arkhe Blocks

WordPress plugin Arkhe Blocks scored79%from 54 tests.

About plugin

  • Plugin page: arkhe-blocks
  • Plugin version: 2.22.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 23
  • Update frequency: every 38.7 days
  • Top authors: looswebstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /13,906 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼1.11ms] Passed 4 tests

Server-side resources used by Arkhe Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3546.85 ▲3.64
Dashboard /wp-admin3.55 ▲0.2050.79 ▼10.84
Posts /wp-admin/edit.php3.66 ▲0.3152.80 ▲1.95
Add New Post /wp-admin/post-new.php6.51 ▲0.63105.72 ▲11.52
Media Library /wp-admin/upload.php3.47 ▲0.2440.42 ▲0.83

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Arkhe Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲10114.41 ▲0.431.65 ▼0.2541.34 ▼2.39
Dashboard /wp-admin2,224 ▲445.58 ▼0.0785.04 ▼15.2980.31 ▲35.64
Posts /wp-admin/edit.php2,146 ▲432.01 ▼0.0037.24 ▼2.9535.67 ▲1.58
Add New Post /wp-admin/post-new.php6,340 ▲4,81421.59 ▲4.11946.95 ▲255.5141.52 ▼10.91
Media Library /wp-admin/upload.php1,445 ▲424.13 ▼0.1390.15 ▼16.2379.61 ▲32.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/arkhe-blocks/block-parts/rss/item/meta.php
  • 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/arkhe-blocks/block-parts/blog_card.php on line 33
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/arkhe-blocks/block-parts/blog_card.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Arkhe_Blocks\\Ajax\\add_action() in wp-content/plugins/arkhe-blocks/inc/ajax.php:20
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/arkhe-blocks/block-parts/blog_card.php on line 28
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/arkhe-blocks/block-parts/blog_card.php on line 23
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/arkhe-blocks/block-parts/rss/item/meta.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/arkhe-blocks/block-parts/rss/item/meta.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/arkhe-blocks/block-parts/rss/item/meta.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/arkhe-blocks/block-parts/rss/simple.php:27
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/arkhe-blocks/block-parts/rss/item/meta.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
4 plugin tags: arkhe, guternberg, blocks, editor

arkhe-blocks/arkhe-blocks.php Passed 13 tests

The main file in "Arkhe Blocks" v. 2.22.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
65 characters long description:
A plugin that extends Gutenberg, optimized for the "Arkhe" theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected11,623 lines of code in 274 files:
LanguageFilesBlank linesComment linesLines of code
Sass711,3243784,864
PHP848618043,341
JSON31001,830
PO File16128481,343
SVG17016151
CSS2411147
JavaScript4611247

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity24.00
▷ Minimum class complexity8.00
▷ Maximum class complexity63.00
Average method complexity4.76
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces17
Interfaces0
Traits2
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods4095.24%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions83
▷ Named functions5971.08%
▷ Anonymous functions2428.92%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/arkp-link.png2.48KB2.64KB0.00%
assets/img/arkhe-menu-icon.png0.85KB0.89KB0.00%