84% gutenipsum

Code Review | GutenIpsum

WordPress plugin GutenIpsum scored84%from 54 tests.

About plugin

  • Plugin page: gutenipsum
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2.2
  • WordPress version: 6.3.1
  • First release: Jun 25, 2019
  • Latest release: Jun 26, 2019
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: derweili (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,248 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼14.29ms] Passed 4 tests

An overview of server-side resources used by GutenIpsum
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0243.32 ▼3.03
Dashboard /wp-admin3.36 ▲0.0243.61 ▼10.56
Posts /wp-admin/edit.php3.41 ▲0.0252.22 ▲1.16
Add New Post /wp-admin/post-new.php5.19 ▼0.7364.51 ▼38.56
Media Library /wp-admin/upload.php3.29 ▲0.0236.02 ▼5.02

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by GutenIpsum
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.35 ▲0.011.68 ▼0.2145.92 ▼0.97
Dashboard /wp-admin2,195 ▲215.55 ▼0.0281.22 ▼12.5737.06 ▼3.60
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0436.02 ▼3.2034.70 ▼1.25
Add New Post /wp-admin/post-new.php1,535 ▲923.38 ▲0.28694.03 ▲21.6259.14 ▲6.16
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.0695.21 ▼19.9743.24 ▼5.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Derweili\\Content_Templates\\add_action() in wp-content/plugins/gutenipsum/lib/register-blocks.php:5
    • > register script file
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Derweili\\Content_Templates\\add_filter() in wp-content/plugins/gutenipsum/lib/block-categories.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Derweili\\GutenIpsum\\add_action() in wp-content/plugins/gutenipsum/lib/register-scripts.php:92

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image not found
Please take inspiration from this readme.txt

gutenipsum/plugin.php 92% from 13 tests

"GutenIpsum" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gutenipsum.php" instead of "plugin.php")

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
There were no executable files found in this plugin12,004 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON20011,505
JavaScript62884325
PHP44464101
Bourne Shell18830
Sass10019
Markdown16014
CSS34310

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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
Namespaces2
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin