74% lorem-ipsum-by-webline

Code Review | Lorem Ipsum by Webline

WordPress plugin Lorem Ipsum by Webline scored 74% from 54 tests.

About plugin

  • Plugin page: lorem-ipsum-by-we...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2015
  • Latest release: Feb 2, 2023
  • Number of updates: 29
  • Update frequency: every 90.7 days
  • Top authors: WeblineIndia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,382 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.64ms] Passed 4 tests

Server-side resources used by Lorem Ipsum by Webline
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.41 ▲4.30
Dashboard /wp-admin3.36 ▲0.0645.60 ▼9.17
Posts /wp-admin/edit.php3.41 ▲0.0648.55 ▲0.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0683.69 ▼7.09
Media Library /wp-admin/upload.php3.29 ▲0.0635.01 ▼3.16

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

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

Browser metrics Passed 4 tests

Lorem Ipsum by Webline: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.47 ▲0.331.73 ▼0.0441.72 ▼3.16
Dashboard /wp-admin2,222 ▲344.86 ▼0.0598.79 ▼17.2536.20 ▼11.85
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0340.21 ▲3.7434.00 ▲3.04
Add New Post /wp-admin/post-new.php1,558 ▲4423.42 ▲5.99648.09 ▼35.2355.85 ▲2.81
Media Library /wp-admin/upload.php1,404 ▲224.30 ▲0.0895.75 ▼4.6044.45 ▲1.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method lipsum_wli::lipsum_delete_option_value() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lorem-ipsum-by-webline/Public/inc/shortcode.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lorem-ipsum-by-webline/Public/class/lorem-ipsum-wli.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: lorem ipsum generator, lorem ipsum, content generator, lorem ipsum shortcode generator, shortcode generator...

lorem-ipsum-by-webline/lorem-ipsum-by-webline.php Passed 13 tests

The main PHP file in "Lorem Ipsum by Webline" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
A Simple plugin to generate lorem ipsum dummy text using shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected349 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP54223211
JavaScript12215128
CSS13010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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