94% lorem-ipsum

Code Review | Lorem Ipsum

WordPress plugin Lorem Ipsum scored 94% from 54 tests.

About plugin

  • Plugin page: lorem-ipsum
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 5.9.2
  • First release: Feb 18, 2013
  • Latest release: Mar 8, 2018
  • Number of updates: 5
  • Update frequency: every 369.4 days
  • Top authors: quadworks (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active / 6,933 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Lorem Ipsum
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0161.01 ▲5.51
Dashboard /wp-admin3.41 ▲0.0036.73 ▼55.06
Posts /wp-admin/edit.php3.64 ▲0.0038.13 ▼3.79
Add New Post /wp-admin/post-new.php6.88 ▼0.0997.67 ▼1,164.24
Media Library /wp-admin/upload.php3.29 ▲0.0024.59 ▼4.31

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Lorem Ipsum
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.93 ▲0.196.55 ▲0.101.89 ▼1.19
Dashboard /wp-admin2,895 ▲416.16 ▲0.02119.52 ▼17.95155.07 ▼21.32
Posts /wp-admin/edit.php2,669 ▼13.24 ▼0.01105.10 ▲10.29152.18 ▲2.87
Add New Post /wp-admin/post-new.php1,661 ▼816.62 ▼4.92433.24 ▼3.53163.47 ▼2.94
Media Library /wp-admin/upload.php1,692 ▼65.53 ▲0.00135.92 ▼9.87184.59 ▼4.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lorem-ipsum/lorem-ipsum.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
5 plugin tags: lorem, blindtext, plugin, filltext, ipsum

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

The main PHP file in "Lorem Ipsum" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Please don't use more than 140 characters for the plugin description (currently 229 characters long)

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
Success! There were no dangerous files found in this plugin374 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14974374

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.50
▷ Minimum class complexity3.00
▷ Maximum class complexity26.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods425.00%
▷ Protected methods00.00%
▷ Private methods1275.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin