84% description-list-block

Code Review | Description List Block

WordPress plugin Description List Block scored84%from 54 tests.

About plugin

  • Plugin page: description-list-...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Apr 5, 2021
  • Latest release: Dec 3, 2023
  • Number of updates: 53
  • Update frequency: every 18.3 days
  • Top authors: Kometschuh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /4,303 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 gracefully, with no errors

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

A check of server-side resources used by Description List Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.15 ▲6.20
Dashboard /wp-admin3.33 ▼0.0246.11 ▼14.19
Posts /wp-admin/edit.php3.38 ▲0.0247.05 ▼5.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.74 ▼2.23
Media Library /wp-admin/upload.php3.25 ▲0.0234.78 ▲1.24

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Description List Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4614.67 ▲0.501.92 ▲0.1745.65 ▲7.47
Dashboard /wp-admin2,195 ▲185.52 ▼0.1097.92 ▲4.1542.43 ▼1.84
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0139.10 ▼2.9735.61 ▼3.28
Add New Post /wp-admin/post-new.php6,366 ▲4,83127.66 ▲9.44931.64 ▲263.5351.59 ▼21.97
Media Library /wp-admin/upload.php1,400 ▲34.19 ▲0.1096.83 ▼13.9342.06 ▼4.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function descriptionList\\add_action() in wp-content/plugins/description-list-block/description-list-block.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: gutenberg, block, description list, list

description-list-block/description-list-block.php Passed 13 tests

"Description List Block" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
108 characters long description:
Displays a description list using the dl element consist of a series of term and description pairs (dt, dd).

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
No dangerous file extensions were detected23,487 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON30023,473
PHP22207
JavaScript1035
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces1
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin