94% aceblocks

Code Review | AceBlocks: Gutenberg Blocks for WordPress

WordPress plugin AceBlocks: Gutenberg Blocks for WordPress scored 94% from 54 tests.

About plugin

  • Plugin page: aceblocks
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.5
  • WordPress version: 5.9.2
  • First release: Apr 27, 2018
  • Latest release: May 10, 2018
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: iamdavekiss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 828 total downloads


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.01MB] [CPU: ▼296.50ms] Passed 4 tests

A check of server-side resources used by AceBlocks: Gutenberg Blocks for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0357.47 ▲6.50
Dashboard /wp-admin3.42 ▲0.0233.33 ▲0.57
Posts /wp-admin/edit.php3.65 ▲0.0236.96 ▼0.56
Add New Post /wp-admin/post-new.php6.90 ▼0.0792.72 ▼1,187.61
Media Library /wp-admin/upload.php3.31 ▲0.0127.20 ▲1.59

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

AceBlocks: Gutenberg Blocks for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,859 ▲10520.54 ▲4.5259.48 ▲53.562.92 ▲0.76
Dashboard /wp-admin2,892 ▲386.15 ▲0.00123.84 ▼17.00157.15 ▼5.80
Posts /wp-admin/edit.php2,688 ▼33.08 ▼0.1563.68 ▲0.37143.10 ▲0.30
Add New Post /wp-admin/post-new.php1,764 ▲10322.49 ▲5.99457.14 ▲43.33160.03 ▲6.22
Media Library /wp-admin/upload.php1,698 ▼05.45 ▼0.06139.63 ▼4.39194.20 ▲6.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/aceblocks/aceblocks.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration Passed 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
5 plugin tags: templates, page builder, editor, blocks, gutenberg

aceblocks/aceblocks.php Passed 13 tests

The primary PHP file in "AceBlocks: Gutenberg Blocks for WordPress" version 1.0.0 is used by WordPress to initiate all plugin functionality
32 characters long description:
Essential Blocks for WordPress 5

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin281 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin