84% aceblocks

Code Review | AceBlocks: Gutenberg Blocks for WordPress

WordPress plugin AceBlocks: Gutenberg Blocks for WordPress scored84%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: 6.3.1
  • 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 /1,072 total downloads


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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.30ms] Passed 4 tests

Server-side resources used by AceBlocks: Gutenberg Blocks for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.64 ▲0.74
Dashboard /wp-admin3.32 ▼0.0344.85 ▼16.74
Posts /wp-admin/edit.php3.37 ▲0.0148.12 ▲8.40
Add New Post /wp-admin/post-new.php6.96 ▲1.0799.21 ▼4.93
Media Library /wp-admin/upload.php3.24 ▲0.0136.45 ▼0.27

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AceBlocks: Gutenberg Blocks for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲11016.07 ▲1.7262.09 ▲60.4044.61 ▲1.80
Dashboard /wp-admin2,195 ▲155.56 ▼0.1184.58 ▼15.6439.40 ▼8.15
Posts /wp-admin/edit.php2,100 ▼32.15 ▲0.2135.58 ▼7.2533.24 ▼3.81
Add New Post /wp-admin/post-new.php1,532 ▼525.62 ▲7.52680.38 ▲20.4734.74 ▼32.66
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0197.10 ▼18.6842.56 ▼6.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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 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
Please take a closer look at the following
  • 1× PHP files trigger server errors 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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: editor, gutenberg, templates, blocks, page builder

aceblocks/aceblocks.php Passed 13 tests

"AceBlocks: Gutenberg Blocks for WordPress" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Essential Blocks for WordPress 5

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin281 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis 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.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
No PNG images were found in this plugin