78% dynamic-home-length

Code Review | Dynamic Home Length

WordPress plugin Dynamic Home Length scored 78% from 54 tests.

About plugin

  • Plugin page: dynamic-home-length
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 5.9.2
  • First release: Jan 22, 2014
  • Latest release: Mar 29, 2014
  • Number of updates: 7
  • Update frequency: every 10.7 days
  • Top authors: narin1975 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Dynamic Home Length
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0259.63 ▲2.79
Dashboard /wp-admin3.43 ▲0.0138.89 ▲5.08
Posts /wp-admin/edit.php3.66 ▲0.0174.50 ▲29.49
Add New Post /wp-admin/post-new.php6.90 ▼0.0895.34 ▼1,177.72
Media Library /wp-admin/upload.php3.31 ▲0.0122.89 ▼0.01
Dynamic home length /wp-admin/options-general.php?page=dynamic-home-length3.2623.07

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
dhl_option

Browser metrics Passed 4 tests

Dynamic Home Length: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲4515.80 ▲0.176.72 ▲0.592.86 ▲0.39
Dashboard /wp-admin2,897 ▲476.15 ▲0.04124.88 ▼0.93169.83 ▼2.93
Posts /wp-admin/edit.php2,696 ▲53.24 ▼0.0066.51 ▼14.89141.22 ▼9.83
Add New Post /wp-admin/post-new.php1,664 ▲316.36 ▲0.79433.09 ▼3.92188.75 ▲31.70
Media Library /wp-admin/upload.php1,697 ▲25.54 ▲0.03153.08 ▲4.48221.99 ▲12.18
Dynamic home length /wp-admin/options-general.php?page=dynamic-home-length9882.3652.86113.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • dhl_option

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=dynamic-home-length
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=dynamic-home-length
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dynamic-home-length/dynamic-home-length.php:37

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Screenshots: Screenshot #1 (Settings) image required
Please take inspiration from this readme.txt

dynamic-home-length/dynamic-home-length.php 92% from 13 tests

This is the main PHP file of "Dynamic Home Length" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)

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 plugin45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191045

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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