89% flexible-blogtitle

Code Review | Flexible Blogtitle

WordPress plugin Flexible Blogtitle scored89%from 54 tests.

About plugin

  • Plugin page: flexible-blogtitle
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2014
  • Latest release: Mar 28, 2014
  • Number of updates: 13
  • Update frequency: every 34.5 days
  • Top authors: thaikolja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,687 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼10.80ms] Passed 4 tests

Server-side resources used by Flexible Blogtitle
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.45 ▼0.70
Dashboard /wp-admin3.39 ▲0.0847.57 ▼3.91
Posts /wp-admin/edit.php3.44 ▲0.0845.35 ▼12.23
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.75 ▼26.36
Media Library /wp-admin/upload.php3.31 ▲0.0838.84 ▲5.12
Flexible Blogtitle /wp-admin/options-general.php?page=flexible-blogtitle3.2934.22

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options
flexible_blogtitle_auto_blogname
widget_recent-posts
flexible_blogtitle_rules
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
flexible_blogtitle_auto_title

Browser metrics Passed 4 tests

A check of browser resources used by Flexible Blogtitle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.66 ▼0.701.78 ▼0.0442.13 ▼1.54
Dashboard /wp-admin2,212 ▲245.80 ▲0.70100.31 ▼7.9639.57 ▼3.16
Posts /wp-admin/edit.php2,098 ▲62.05 ▲0.0738.35 ▼1.2933.17 ▼4.29
Add New Post /wp-admin/post-new.php1,542 ▲2218.60 ▼4.43650.77 ▲11.9448.06 ▼10.12
Media Library /wp-admin/upload.php1,394 ▲94.25 ▲0.0099.81 ▲0.4845.75 ▲3.41
Flexible Blogtitle /wp-admin/options-general.php?page=flexible-blogtitle1,1082.0826.2033.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • flexible_blogtitle_auto_title
    • flexible_blogtitle_rules
    • can_compress_scripts
    • widget_recent-comments
    • flexible_blogtitle_auto_blogname
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The plugin's settings page lets you define custom rules.) image missing
You can look at the official readme.txt

flexible-blogtitle/flexible_blogtitle.php 92% from 13 tests

This is the main PHP file of "Flexible Blogtitle" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("flexible-blogtitle.php" instead of "flexible_blogtitle.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected749 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP133113523
PO File13137127
JavaScript111099

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.59
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png21.49KB20.10KB▼ 6.47%