84% dummy-text-generator

Code Review | Dummy Text Generator

WordPress plugin Dummy Text Generator scored 84% from 54 tests.

About plugin

  • Plugin page: dummy-text-generator
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 12, 2017
  • Latest release: Sep 11, 2023
  • Number of updates: 43
  • Update frequency: every 52.4 days
  • Top authors: mnaopu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 5,485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.72ms] Passed 4 tests

A check of server-side resources used by Dummy Text Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.56 ▼7.76
Dashboard /wp-admin3.31 ▲0.0046.32 ▼6.21
Posts /wp-admin/edit.php3.36 ▲0.0044.04 ▼3.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.47 ▼5.13
Media Library /wp-admin/upload.php3.23 ▲0.0034.97 ▲0.39

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Dummy Text Generator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8214.47 ▼0.321.57 ▼0.1741.26 ▼2.02
Dashboard /wp-admin2,220 ▲325.79 ▼0.03104.34 ▼9.8639.67 ▼5.47
Posts /wp-admin/edit.php2,109 ▲202.02 ▲0.0338.84 ▲1.4335.55 ▲2.05
Add New Post /wp-admin/post-new.php1,545 ▲1123.27 ▲0.21629.86 ▼55.9061.48 ▲0.08
Media Library /wp-admin/upload.php1,405 ▲144.29 ▲0.1594.94 ▼11.9741.77 ▼5.81

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dummy-text-generator/dummy-text-generator.php:21

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 93% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot_1.png), #2 (screenshot_2.png)
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

dummy-text-generator/dummy-text-generator.php Passed 13 tests

The main PHP file in "Dummy Text Generator" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
This is a simple WordPress Dummy Text Generator plugin. This plugin based on lorem ipsum dummy content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161222

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Screenshot_2.png65.71KB29.15KB▼ 55.64%
images/Screenshot_1.png72.75KB31.73KB▼ 56.39%