84% wp-lorem-ipsum

Code Review | WP Lorem ipsum

WordPress plugin WP Lorem ipsum scored84%from 54 tests.

About plugin

  • Plugin page: wp-lorem-ipsum
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Jul 21, 2021
  • Number of updates: 29
  • Update frequency: every 54.0 days
  • Top authors: matteomanna (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

900+ active /22,509 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.02MB] [CPU: ▼11.77ms] Passed 4 tests

Server-side resources used by WP Lorem ipsum
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.81 ▼5.37
Dashboard /wp-admin3.35 ▲0.0043.31 ▼17.73
Posts /wp-admin/edit.php3.40 ▲0.0446.47 ▼5.23
Add New Post /wp-admin/post-new.php5.93 ▲0.0478.25 ▼18.75
Media Library /wp-admin/upload.php3.27 ▲0.0435.20 ▼4.70
WP Lorem ipsum /wp-admin/options-general.php?page=wp-lorem-ipsum3.2429.48

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

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

Browser metrics Passed 4 tests

WP Lorem ipsum: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.60 ▼0.931.68 ▲0.0539.58 ▼4.09
Dashboard /wp-admin2,212 ▲215.85 ▲0.94100.06 ▲0.5939.27 ▼5.50
Posts /wp-admin/edit.php2,098 ▲92.06 ▼0.0038.35 ▼3.1334.92 ▼2.63
Add New Post /wp-admin/post-new.php1,542 ▼018.29 ▲0.13632.92 ▼5.7457.98 ▼0.15
Media Library /wp-admin/upload.php1,394 ▲64.26 ▲0.0293.27 ▼16.2543.24 ▼4.65
WP Lorem ipsum /wp-admin/options-general.php?page=wp-lorem-ipsum1,0332.1824.3225.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-lorem-ipsum/admin/class-wpli-admin.php:345

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: page, post thumbnail, lorem ipsum, database, post type...

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

Analyzing the main PHP file in "WP Lorem ipsum" version 3.2
105 characters long description:
Automatically create new fake posts to fill the database and get a very good impression for your website.

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 detected540 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1800320
PHP38292205
CSS13015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods654.55%
▷ Protected methods00.00%
▷ Private methods545.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.20MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png105.23KB111.90KB0.00%
screenshot-2.png61.43KB63.50KB0.00%
screenshot-1.png35.52KB36.17KB0.00%