99% advanced-button-block

Code Review | Advanced Button Block

WordPress plugin Advanced Button Block scored 99% from 54 tests.

About plugin

  • Plugin page: advanced-button-b...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2.2
  • WordPress version: 5.9.2
  • First release: Oct 20, 2018
  • Latest release: Jun 26, 2019
  • Number of updates: 9
  • Update frequency: every 27.7 days
  • Top authors: poglaa (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 896 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Server-side resources used by Advanced Button Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.88 ▼2.06
Dashboard /wp-admin3.42 ▲0.0132.62 ▼1.16
Posts /wp-admin/edit.php3.65 ▲0.0137.38 ▲1.19
Add New Post /wp-admin/post-new.php6.89 ▼0.08196.24 ▼1,069.30
Media Library /wp-admin/upload.php3.30 ▲0.0129.23 ▲3.49

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Button Block
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲7815.84 ▲0.095.55 ▼1.032.70 ▲0.61
Dashboard /wp-admin2,895 ▲346.10 ▼0.05117.91 ▼30.96220.00 ▲15.47
Posts /wp-admin/edit.php2,694 ▲93.23 ▼0.0071.73 ▼1.20137.58 ▼45.56
Add New Post /wp-admin/post-new.php1,768 ▲10722.20 ▲6.35521.97 ▲107.44176.18 ▲29.86
Media Library /wp-admin/upload.php1,701 ▼05.51 ▲0.02144.13 ▼0.89202.76 ▲13.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Gutenberg Advanced Button Adding a Button), #2 (Gutenberg Advanced Button Screenshot)
The official readme.txt might help

advanced-button-block/plugin.php 92% from 13 tests

The main PHP file in "Advanced Button Block" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("advanced-button-block.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 plugin902 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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 functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin