94% lorem-ipsum-replace-content

Code Review | Lorem Ipsum Replace Content

WordPress plugin Lorem Ipsum Replace Content scored 94% from 54 tests.

About plugin

  • Plugin page: lorem-ipsum-repla...
  • Plugin version: 0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 5.8.1
  • First release: Apr 27, 2015
  • Latest release: Jul 14, 2021
  • Number of updates: 5
  • Update frequency: every 455.0 days
  • Top authors: circlecube (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 954 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Lorem Ipsum Replace Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2137.79 ▲13.31
Dashboard /wp-admin3.09 ▲0.0345.27 ▼3.06
Posts /wp-admin/edit.php3.14 ▲0.0349.63 ▲7.12
Add New Post /wp-admin/post-new.php5.45 ▲0.0193.99 ▼574.08
Media Library /wp-admin/upload.php3.03 ▲0.0235.85 ▲1.85

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Lorem Ipsum Replace Content
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.15 ▲0.629.25 ▲1.8150.79 ▲4.07
Dashboard /wp-admin2,973 ▲396.11 ▲0.18152.29 ▲0.18117.81 ▼1.03
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0172.16 ▲3.3499.44 ▲5.43
Add New Post /wp-admin/post-new.php1,683 ▼018.84 ▲0.17392.77 ▼15.27113.29 ▲2.01
Media Library /wp-admin/upload.php1,810 ▲35.00 ▲0.01156.77 ▼7.54131.04 ▼10.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 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/lorem-ipsum-replace-content/lorem-ipsum-replace-content.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version format is invalid
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === lorem-ipsum-replace-content === )
You can take inspiration from this readme.txt

lorem-ipsum-replace-content/lorem-ipsum-replace-content.php Passed 13 tests

Analyzing the main PHP file in "Lorem Ipsum Replace Content" version 0.4
52 characters long description:
Render your content with lorem ipsum, word for word.

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
No dangerous file extensions were detected57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1153954
Markdown1103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Functions0
▷ Named functions00.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