83% lazy-lorem-ipsum

Code Review | Lazy Lorem Ipsum

WordPress plugin Lazy Lorem Ipsum scored83%from 54 tests.

About plugin

  • Plugin page: lazy-lorem-ipsum
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.4
  • WordPress version: 6.3.1
  • First release: Sep 25, 2013
  • Latest release: Apr 18, 2017
  • Number of updates: 6
  • Update frequency: every 217.0 days
  • Top authors: boluda (66.67%)unitepress (50%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.33MB] [CPU: ▼12.52ms] Passed 4 tests

This is a short check of server-side resources used by Lazy Lorem Ipsum
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0336.76 ▼5.08
Dashboard /wp-admin3.31 ▲0.0146.21 ▲1.08
Posts /wp-admin/edit.php3.36 ▲0.0147.52 ▼2.40
Add New Post /wp-admin/post-new.php4.60 ▼1.2843.16 ▼43.68
Media Library /wp-admin/upload.php3.23 ▲0.0039.76 ▲4.08

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Lazy Lorem Ipsum
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲3213.22 ▼1.081.69 ▼0.1940.99 ▲2.02
Dashboard /wp-admin2,203 ▲185.84 ▲0.9896.02 ▼21.0839.93 ▼6.46
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0339.60 ▼3.9635.67 ▼2.32
Add New Post /wp-admin/post-new.php1,384 ▼14922.85 ▼0.43556.72 ▼119.6934.28 ▼18.74
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.0895.75 ▼6.5042.42 ▼1.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/lazy-lorem-ipsum/lazy-lorem-ipsum.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === lazy-lorem-ipsum === )
You can look at the official readme.txt

lazy-lorem-ipsum/lazy-lorem-ipsum.php 85% from 13 tests

The entry point to "Lazy Lorem Ipsum" version 1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/lang" does not exist
  • 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 review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182310

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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
There are no PNG files in this plugin