100% advanced-heading

Code Review | Advanced Heading

WordPress plugin Advanced Heading scored 100% from 54 tests.

About plugin

  • Plugin page: advanced-heading
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.9.2
  • First release: Oct 5, 2021
  • Latest release: Feb 7, 2022
  • Number of updates: 3
  • Update frequency: every 41.7 days
  • Top authors: wpdevteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 447 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Advanced Heading
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0960.44 ▲4.46
Dashboard /wp-admin3.44 ▲0.0337.19 ▲1.11
Posts /wp-admin/edit.php3.67 ▲0.0345.21 ▼0.67
Add New Post /wp-admin/post-new.php6.92 ▼0.0598.79 ▼1,191.17
Media Library /wp-admin/upload.php3.32 ▲0.0232.65 ▼1.63

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Heading
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5315.13 ▼0.646.44 ▲0.412.86 ▲0.78
Dashboard /wp-admin2,895 ▲346.17 ▼0.14113.01 ▼15.92152.43 ▼10.58
Posts /wp-admin/edit.php2,691 ▼33.23 ▲0.0061.45 ▼3.15139.13 ▼3.29
Add New Post /wp-admin/post-new.php1,712 ▼4817.58 ▼5.07430.74 ▲23.72165.08 ▲8.49
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.09142.75 ▲3.26183.30 ▼15.05

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

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

advanced-heading/advanced-heading.php Passed 13 tests

The main PHP script in "Advanced Heading" version 1.1.0 is automatically included on every request by WordPress
67 characters long description:
Create Advanced Heading with Title, Subtitle and Separator Controls

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,771 lines of code in 24 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
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.25
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
▷ Static methods423.53%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants3100.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
PNG images were not found in this plugin