89% advance-block-extend

Code Review | Advance Block Extend

WordPress plugin Advance Block Extend scored89%from 54 tests.

About plugin

  • Plugin page: advance-block-extend
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Jan 17, 2019
  • Latest release: May 23, 2021
  • Number of updates: 20
  • Update frequency: every 43.1 days
  • Top authors: iamjaydip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,562 total downloads

Benchmarks

Plugin footprint 83% from 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.24MB] [CPU: ▼11.84ms] Passed 4 tests

Analyzing server-side resources used by Advance Block Extend
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.33 ▼2.73
Dashboard /wp-admin3.34 ▲0.0344.76 ▲1.30
Posts /wp-admin/edit.php3.39 ▲0.0345.43 ▼1.13
Add New Post /wp-admin/post-new.php4.83 ▼1.0647.79 ▼44.25
Media Library /wp-admin/upload.php3.26 ▲0.0334.06 ▲0.75

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Advance Block Extend
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲2314.35 ▼0.211.79 ▲0.0443.04 ▼2.07
Dashboard /wp-admin2,197 ▲255.58 ▼0.0796.32 ▼2.4936.76 ▼3.88
Posts /wp-admin/edit.php2,102 ▲22.01 ▲0.0361.03 ▲24.3245.34 ▲5.94
Add New Post /wp-admin/post-new.php6,233 ▲4,70719.15 ▼4.47918.53 ▲231.5138.11 ▼25.74
Media Library /wp-admin/upload.php1,402 ▲24.22 ▼0.0194.62 ▼2.2743.57 ▼1.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in advance-block-extend/assets to your readme.txt
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Donate link: Invalid url: "#"
Please take inspiration from this readme.txt

advance-block-extend/gutenberg-block.php 92% from 13 tests

Analyzing the main PHP file in "Advance Block Extend" version 1.0.2
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("advance-block-extend.php" instead of "gutenberg-block.php")

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
Good job! No executable or dangerous file extensions detected6,652 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS138582,657
JavaScript6128171,213
PHP13912111

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.57
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ 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 are no PNG files in this plugin