90% simple-definition-list-blocks

Code Review | Simple Definition List Blocks

WordPress plugin Simple Definition List Blocks scored90%from 54 tests.

About plugin

  • Plugin page: simple-definition...
  • Plugin version: 6.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 34
  • Update frequency: every 47.6 days
  • Top authors: mel_cha (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

900+ active /9,700 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.83ms] Passed 4 tests

This is a short check of server-side resources used by Simple Definition List Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.48 ▼4.91
Dashboard /wp-admin3.33 ▲0.0345.83 ▼2.18
Posts /wp-admin/edit.php3.38 ▲0.0248.45 ▲5.13
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.93 ▼9.98
Media Library /wp-admin/upload.php3.25 ▲0.0234.30 ▲1.76

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Definition List Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.22 ▼0.131.74 ▼0.0440.15 ▼7.14
Dashboard /wp-admin2,192 ▲155.65 ▼0.0192.11 ▲2.1743.67 ▼3.15
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0140.76 ▲6.1137.85 ▼1.03
Add New Post /wp-admin/post-new.php1,694 ▲16822.33 ▼0.80586.94 ▼16.7933.96 ▼14.98
Media Library /wp-admin/upload.php1,391 ▼94.16 ▼0.1498.52 ▼16.9840.52 ▼2.53

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: blocks, posts

simple-definition-list-blocks/simple-definition-list-blocks.php 92% from 13 tests

"Simple Definition List Blocks" version 6.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.6" instead of "5.8")

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
Success! There were no dangerous files found in this plugin24,786 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JSON130024,368
JavaScript213517273
Markdown117045
XML24744
YAML261038
PHP641818

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
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 functions150.00%
▷ Anonymous functions150.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
PNG images were not found in this plugin