84% aploblocks

Code Review | Aploblocks - Extra design features for the block editor

WordPress plugin Aploblocks - Extra design features for the block editor scored84%from 54 tests.

About plugin

  • Plugin page: aploblocks
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Feb 14, 2023
  • Latest release: Apr 10, 2023
  • Number of updates: 12
  • Update frequency: every 4.6 days
  • Top authors: antwp9876 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /2,425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.63MB] [CPU: ▼15.79ms] Passed 4 tests

A check of server-side resources used by Aploblocks - Extra design features for the block editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.34 ▼0.77
Dashboard /wp-admin3.35 ▲0.0543.57 ▼5.51
Posts /wp-admin/edit.php3.40 ▲0.0547.03 ▲2.16
Add New Post /wp-admin/post-new.php3.23 ▼2.6635.47 ▼59.03
Media Library /wp-admin/upload.php3.28 ▲0.0537.34 ▲4.86

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aploblocks - Extra design features for the block editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.22 ▼1.151.97 ▲0.2642.83 ▲1.62
Dashboard /wp-admin2,209 ▲215.77 ▼0.0993.84 ▼13.0140.42 ▲0.17
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0439.72 ▲2.4835.03 ▼0.42
Add New Post /wp-admin/post-new.php1,543 ▲123.86 ▲5.52630.31 ▼5.3633.83 ▼18.60
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0095.35 ▼0.5842.09 ▲1.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aploblocks/inc/register_styles.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aploblocks/aploblocks.php:111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/aploblocks/inc/rest-api.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: patterns, masks, sticky header, block editor, gutenberg...

aploblocks/aploblocks.php Passed 13 tests

The main PHP file in "Aploblocks - Extra design features for the block editor" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
117 characters long description:
Extra design features for the block editor. Animate, transform, move, mask & filter blocks with no coding necessary!

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
Good job! No executable or dangerous file extensions detected1,053 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS414956726
PHP369100173
SVG120196
JavaScript314058

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ 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
9 PNG files occupy 0.39MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/textures/bg.png44.63KB3.41KB▼ 92.36%
assets/images/textures/bg8.png26.27KB2.71KB▼ 89.70%
assets/images/textures/bg6.png35.64KB0.99KB▼ 97.23%
assets/images/textures/bg7.png28.79KB4.09KB▼ 85.77%
assets/images/textures/bg3.png6.39KB0.11KB▼ 98.26%