89% absolutte-blocks

Code Review | Absolutte Blocks

WordPress plugin Absolutte Blocks scored89%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: 6.3.1
  • 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

40+ active /7,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.87ms] Passed 4 tests

An overview of server-side resources used by Absolutte Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.41 ▲1.23
Dashboard /wp-admin3.33 ▼0.0144.72 ▼13.25
Posts /wp-admin/edit.php3.39 ▲0.0346.52 ▲2.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.22 ▼17.58
Media Library /wp-admin/upload.php3.26 ▲0.0335.18 ▲3.02

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 213 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Absolutte Blocks: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.28 ▲0.031.84 ▲0.2347.27 ▲8.08
Dashboard /wp-admin2,198 ▲175.59 ▼0.1583.43 ▼18.1936.60 ▼5.95
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0536.50 ▲2.0531.99 ▼2.22
Add New Post /wp-admin/post-new.php6,370 ▲4,83828.11 ▲4.98944.32 ▲289.4582.67 ▲23.68
Media Library /wp-admin/upload.php1,391 ▼124.19 ▼0.0997.38 ▼0.1643.71 ▲2.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in absolutte-blocks/assets to your readme.txt
The official readme.txt is a good inspiration

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

"Absolutte Blocks" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("absolutte-blocks.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin35,700 lines of code in 177 files:
LanguageFilesBlank linesComment linesLines of code
Sass1452,6521,13614,032
CSS91,498898,366
JSON2006,916
SVG4003,882
JavaScript141901012,356
PHP22769143
Markdown1205

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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%