84% lorem-ipsum-dummy-article-shortcode

Code Review | Lorem ipsum dummy article shortcode

WordPress plugin Lorem ipsum dummy article shortcode scored84%from 54 tests.

About plugin

  • Plugin page: lorem-ipsum-dummy...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-4.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2015
  • Latest release: Jan 24, 2015
  • Number of updates: 3
  • Update frequency: every 25.0 days
  • Top authors: Sjeiti (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,779 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Lorem ipsum dummy article shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.44 ▼0.84
Dashboard /wp-admin3.31 ▼0.0441.03 ▼19.00
Posts /wp-admin/edit.php3.36 ▲0.0043.75 ▼4.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.29 ▼11.06
Media Library /wp-admin/upload.php3.23 ▲0.0030.29 ▼6.02

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Lorem ipsum dummy article shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.031.65 ▲0.0639.31 ▼5.85
Dashboard /wp-admin2,195 ▲155.63 ▲0.0289.44 ▼1.5736.84 ▼5.32
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0339.92 ▲2.7736.58 ▲0.44
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▼0.08653.33 ▼66.9657.61 ▲3.08
Media Library /wp-admin/upload.php1,400 ▲34.15 ▲0.0095.29 ▼24.0946.37 ▼3.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lorem-ipsum-dummy-article-shortcode/index.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: dummy text, shortcode, dummy image, lorem ipsum, dummy html...

lorem-ipsum-dummy-article-shortcode/index.php 85% from 13 tests

"Lorem ipsum dummy article shortcode" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please improve your description making it at least 10 characters long (currently 1 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("lorem-ipsum-dummy-article-shortcode.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected179 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115110179

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods215.38%
▷ Protected methods00.00%
▷ Private methods1184.62%
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
There were not PNG files found in your plugin