84% small-heading-for-post-title

Code Review | Small Heading For Post Title

WordPress plugin Small Heading For Post Title scored 84% from 54 tests.

About plugin

  • Plugin page: small-heading-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1+
  • WordPress version: 5.8.1
  • First release: Nov 14, 2018
  • Latest release: Nov 14, 2018
  • Number of updates: 16
  • Update frequency: N/A
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 438 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Small Heading For Post Title
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1541.68 ▲21.32
Dashboard /wp-admin3.10 ▲0.0446.85 ▲2.00
Posts /wp-admin/edit.php3.15 ▲0.0446.17 ▲1.46
Add New Post /wp-admin/post-new.php5.46 ▲0.0391.60 ▼705.30
Media Library /wp-admin/upload.php3.04 ▲0.0434.82 ▼56.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Small Heading For Post Title
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲11715.86 ▼0.2510.81 ▼2.2748.15 ▲0.27
Dashboard /wp-admin2,990 ▲575.91 ▼0.10142.52 ▼3.2698.55 ▼14.11
Posts /wp-admin/edit.php2,759 ▲202.73 ▲0.0184.81 ▲18.2191.07 ▼8.10
Add New Post /wp-admin/post-new.php1,562 ▼1917.08 ▼0.21338.98 ▼134.60121.17 ▼259.48
Media Library /wp-admin/upload.php1,827 ▲205.02 ▼0.06161.50 ▼122.24114.69 ▼212.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+303
    call_user_func_array() expects parameter 1 to be a valid callback, function 'shfpt_SmallHeadingPostsTitle_uninstall' not found or invalid function name

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/small-heading-for-post-title/small-heading-for-post-title.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tested up to: Version not formatted correctly
You can look at the official readme.txt

small-heading-for-post-title/small-heading-for-post-title.php Passed 13 tests

This is the main PHP file of "Small Heading For Post Title" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
The Small Heading For Post Title is a simple plugin for displaying small headings before or after post title.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin149 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22250149

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin