84% gr-lorem-ipsum-generator

Code Review | GR Lorem Ipsum Generator

WordPress plugin GR Lorem Ipsum Generator scored84%from 54 tests.

About plugin

  • Plugin page: gr-lorem-ipsum-ge...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Feb 13, 2014
  • Latest release: Jun 6, 2018
  • Number of updates: 12
  • Update frequency: every 131.2 days
  • Top authors: jwiere03 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,938 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.16ms] Passed 4 tests

This is a short check of server-side resources used by GR Lorem Ipsum Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.41 ▼0.27
Dashboard /wp-admin3.32 ▼0.0260.10 ▼2.80
Posts /wp-admin/edit.php3.37 ▲0.0252.79 ▲3.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.03 ▼28.84
Media Library /wp-admin/upload.php3.24 ▲0.0237.12 ▼0.71

Server storage [IO: ▲0.01MB] [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
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GR Lorem Ipsum Generator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.69 ▲0.721.84 ▲0.0742.05 ▲0.07
Dashboard /wp-admin2,198 ▲215.61 ▼0.0497.44 ▲5.5242.11 ▼1.26
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0334.51 ▼3.7036.87 ▲2.62
Add New Post /wp-admin/post-new.php1,526 ▼023.31 ▲0.33674.87 ▲33.3753.17 ▲0.70
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.0298.87 ▼8.9642.96 ▼5.97

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gr-lorem-ipsum-generator/gr-lorem-ipsum.php:102

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: text, ipsum, plugin, lorem, placeholder

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

Analyzing the main PHP file in "GR Lorem Ipsum Generator" version 2.1
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 219 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("gr-lorem-ipsum-generator.php" instead of "gr-lorem-ipsum.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP142079

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.74
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

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