90% advanced-heading

Code Review | Advanced Heading

WordPress plugin Advanced Heading scored90%from 54 tests.

About plugin

  • Plugin page: advanced-heading
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 5, 2021
  • Latest release: Apr 3, 2023
  • Number of updates: 8
  • Update frequency: every 68.1 days
  • Top authors: wpdevteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.71ms] Passed 4 tests

A check of server-side resources used by Advanced Heading
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0652.04 ▲7.91
Dashboard /wp-admin3.33 ▲0.0349.44 ▼3.21
Posts /wp-admin/edit.php3.44 ▲0.0945.81 ▼3.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.60 ▼6.46
Media Library /wp-admin/upload.php3.25 ▲0.0238.74 ▲6.14

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Heading
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.101.88 ▲0.2045.88 ▼1.59
Dashboard /wp-admin2,209 ▲185.84 ▲0.9596.58 ▼9.6138.86 ▼4.89
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0337.07 ▼0.8031.86 ▼2.37
Add New Post /wp-admin/post-new.php1,654 ▲11224.69 ▲6.47656.69 ▲18.3739.08 ▼21.24
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0494.07 ▼4.4847.13 ▲2.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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
Congratulations! This plugin passed the SRP test

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 97% 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:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The main PHP file in "Advanced Heading" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
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 | 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 detected18,139 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
SVG50012,231
CSS61,503485,075
PHP9105165717
JavaScript5117104
JSON20012

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.62
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin