90% lorem-ipsum-blocks

Code Review | Lorem Ipsum Blocks

WordPress plugin Lorem Ipsum Blocks scored90%from 54 tests.

About plugin

  • Plugin page: lorem-ipsum-blocks
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Feb 26, 2021
  • Latest release: May 23, 2022
  • Number of updates: 8
  • Update frequency: every 56.4 days
  • Top authors: looswebstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.95ms] Passed 4 tests

This is a short check of server-side resources used by Lorem Ipsum Blocks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0338.12 ▼3.15
Dashboard /wp-admin3.33 ▲0.0343.27 ▼5.83
Posts /wp-admin/edit.php3.38 ▲0.0247.89 ▲2.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.31 ▲2.00
Media Library /wp-admin/upload.php3.25 ▲0.0232.04 ▼4.82

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lorem Ipsum Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼0.994.76 ▲2.8040.86 ▼7.75
Dashboard /wp-admin2,200 ▲95.80 ▼0.10103.07 ▼0.1437.10 ▼6.57
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0339.11 ▲2.0235.30 ▲3.32
Add New Post /wp-admin/post-new.php1,533 ▼023.02 ▼0.36642.71 ▼33.3352.22 ▼3.88
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0494.19 ▼10.4744.24 ▲3.45

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: placeholder, lorem ipsum, blocks

lorem-ipsum-blocks/lorem-ipsum-blocks.php Passed 13 tests

The main PHP file in "Lorem Ipsum Blocks" ver. 1.3.0 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
A plugin that makes it easy to use blocks with dummy text.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected336 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21035141
PO File12425101
PHP4223176
JSON20018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants2
▷ Global constants2100.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
No PNG files were detected