83% lorem-ipsum-for-wp-editor

Code Review | Lorem Ipsum for WP Editor

WordPress plugin Lorem Ipsum for WP Editor scored83%from 54 tests.

About plugin

  • Plugin page: lorem-ipsum-for-w...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jun 11, 2014
  • Latest release: Jun 30, 2014
  • Number of updates: 11
  • Update frequency: every 1.7 days
  • Top authors: JaynneGomes (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,731 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.00MB] [CPU: ▼8.40ms] Passed 4 tests

A check of server-side resources used by Lorem Ipsum for WP Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.43 ▼2.66
Dashboard /wp-admin3.31 ▲0.0048.25 ▼1.99
Posts /wp-admin/edit.php3.36 ▲0.0048.25 ▼1.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.19 ▼15.43
Media Library /wp-admin/upload.php3.23 ▲0.0039.63 ▼13.51

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lorem Ipsum for WP Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.20 ▼1.091.68 ▼0.2243.07 ▼1.70
Dashboard /wp-admin2,221 ▲154.84 ▼1.06115.78 ▲13.1743.00 ▲4.42
Posts /wp-admin/edit.php2,097 ▼32.05 ▼0.0133.26 ▼5.3634.62 ▲0.55
Add New Post /wp-admin/post-new.php1,554 ▲1422.98 ▲4.74636.92 ▼16.0763.14 ▲6.43
Media Library /wp-admin/upload.php1,400 ▼04.13 ▼0.06113.69 ▲2.6848.23 ▲3.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lorem-ipsum-for-wp-editor/Lorem-Ipsum-for-Wp-Editor.php:13

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Adding Lorem Ipsum text to post content by one click.) image required
You can look at the official readme.txt

lorem-ipsum-for-wp-editor/Lorem-Ipsum-for-Wp-Editor.php 77% from 13 tests

The primary PHP file in "Lorem Ipsum for WP Editor" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/lang")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lorem-ipsum-for-wp-editor.php" instead of "Lorem-Ipsum-for-Wp-Editor.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131034

PHP code Passed 2 tests

This is a very shot review 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.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%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.28KB13.33KB▼ 40.16%