89% lorem-ipsum-block

Code Review | Lorem Ipsum Block - Placeholders for everyone

WordPress plugin Lorem Ipsum Block - Placeholders for everyone scored89%from 54 tests.

About plugin

  • Plugin page: lorem-ipsum-block
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.0
  • WordPress version: 6.3.1
  • First release: Jun 4, 2019
  • Latest release: Mar 19, 2020
  • Number of updates: 7
  • Update frequency: every 41.3 days
  • Top authors: eedee (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active /8,420 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: ▼5.82ms] Passed 4 tests

Server-side resources used by Lorem Ipsum Block - Placeholders for everyone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.40 ▼4.95
Dashboard /wp-admin3.31 ▲0.0143.75 ▼1.29
Posts /wp-admin/edit.php3.36 ▲0.0045.51 ▼4.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.33 ▼12.74
Media Library /wp-admin/upload.php3.23 ▲0.0034.00 ▲1.18

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Lorem Ipsum Block - Placeholders for everyone: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.72 ▼0.714.68 ▲2.8242.38 ▲2.67
Dashboard /wp-admin2,206 ▲154.84 ▼1.06109.21 ▼8.8339.77 ▼4.91
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0037.40 ▼4.5234.34 ▼1.31
Add New Post /wp-admin/post-new.php6,199 ▲4,68521.96 ▲4.36897.09 ▲220.3269.57 ▲10.29
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0397.53 ▼3.9342.36 ▲0.33

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 93% 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
4 plugin tags: blocks, lorem ipsum, placeholder, text

lorem-ipsum-block/eedee-lorem-ipsum-block.php 85% from 13 tests

The main PHP script in "Lorem Ipsum Block - Placeholders for everyone" version 2.1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lorem-ipsum-block.php" instead of "eedee-lorem-ipsum-block.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin321 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript64639225
PHP285739
Sass33138
JSON10017
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected