84% nested-ordered-lists-for-block-editor

Code Review | Nested Ordered Lists for Block Editor

WordPress plugin Nested Ordered Lists for Block Editor scored84%from 54 tests.

About plugin

  • Plugin page: nested-ordered-li...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Nov 25, 2023
  • Number of updates: 8
  • Update frequency: every 49.3 days
  • Top authors: threadi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,207 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼3.97ms] Passed 4 tests

Analyzing server-side resources used by Nested Ordered Lists for Block Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.61 ▲0.24
Dashboard /wp-admin3.31 ▼0.0345.59 ▼12.72
Posts /wp-admin/edit.php3.36 ▲0.0146.54 ▼0.70
Add New Post /wp-admin/post-new.php7.17 ▲1.2895.00 ▲11.24
Media Library /wp-admin/upload.php3.24 ▲0.0132.13 ▼2.68

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Nested Ordered Lists for Block Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲19620.42 ▲5.68161.81 ▲160.2847.39 ▲10.11
Dashboard /wp-admin2,195 ▲175.53 ▼0.1484.88 ▼23.9339.77 ▼4.66
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0345.43 ▲5.5737.56 ▲4.95
Add New Post /wp-admin/post-new.php1,537 ▲1124.10 ▲0.73670.37 ▲32.6235.46 ▼24.11
Media Library /wp-admin/upload.php1,400 ▼34.31 ▲0.02101.44 ▼0.3742.79 ▼1.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just 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 add_action() in wp-content/plugins/nested-ordered-lists-for-block-editor/nested-ordered-lists-for-block-editor.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: The official readme.txt might help

nested-ordered-lists-for-block-editor/nested-ordered-lists-for-block-editor.php Passed 13 tests

Analyzing the main PHP file in "Nested Ordered Lists for Block Editor" version 1.1.0
52 characters long description:
Adds support for nested ordered lists in List Block.

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
Good job! No executable or dangerous file extensions detected5,504 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS217235,465
PHP474136
JavaScript1023

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin