99% absolutte-blocks

Code Review | Absolutte Blocks

WordPress plugin Absolutte Blocks scored 99% from 54 tests.

About plugin

  • Plugin page: absolutte-blocks
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.0
  • WordPress version: 5.9.2
  • First release: Oct 26, 2018
  • Latest release: Dec 11, 2018
  • Number of updates: 7
  • Update frequency: every 7.6 days
  • Top authors: nicoandrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 4,480 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼290.25ms] Passed 4 tests

Server-side resources used by Absolutte Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0454.66 ▼1.53
Dashboard /wp-admin3.44 ▲0.0335.54 ▲1.87
Posts /wp-admin/edit.php3.67 ▲0.0383.10 ▲41.28
Add New Post /wp-admin/post-new.php6.91 ▼0.06100.92 ▼1,164.53
Media Library /wp-admin/upload.php3.32 ▲0.0329.64 ▲3.21

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 213 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Absolutte Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲5115.91 ▲0.135.97 ▼0.122.77 ▲0.16
Dashboard /wp-admin2,874 ▲206.23 ▲0.11117.55 ▼23.96158.75 ▼46.30
Posts /wp-admin/edit.php2,688 ▼33.24 ▼0.0165.66 ▼5.44144.38 ▼8.30
Add New Post /wp-admin/post-new.php1,675 ▲1417.55 ▼4.76457.40 ▲36.12159.51 ▼2.77
Media Library /wp-admin/upload.php1,695 ▼35.53 ▼0.04146.25 ▼14.62186.47 ▼3.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in absolutte-blocks/assets to your readme.txt
The official readme.txt might help

absolutte-blocks/plugin.php 92% from 13 tests

This is the main PHP file of "Absolutte Blocks" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("absolutte-blocks.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin35,700 lines of code in 177 files:
LanguageFilesBlank linesComment linesLines of code

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.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
src/welcome/images/computer.png35.13KB27.99KB▼ 20.34%