83% ejls-easy-json-ld-setter

Code Review | Structured Data of JSON-LD

WordPress plugin Structured Data of JSON-LD scored83%from 54 tests.

About plugin

  • Plugin page: ejls-easy-json-ld...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 30, 2014
  • Latest release: Aug 17, 2015
  • Number of updates: 12
  • Update frequency: every 26.9 days
  • Top authors: hideokamoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,406 total downloads


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.01MB] [CPU: ▼12.41ms] Passed 4 tests

A check of server-side resources used by Structured Data of JSON-LD
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.93 ▼0.63
Dashboard /wp-admin3.32 ▲0.0148.41 ▼5.63
Posts /wp-admin/edit.php3.37 ▲0.0150.54 ▼2.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.12 ▼36.53
Media Library /wp-admin/upload.php3.24 ▲0.0133.11 ▼5.18

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Structured Data of JSON-LD
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.21 ▼0.141.90 ▲0.2043.81 ▼14.72
Dashboard /wp-admin2,195 ▲155.61 ▼0.0690.64 ▲0.1737.57 ▼1.18
Posts /wp-admin/edit.php2,097 ▼62.11 ▲0.1036.42 ▼2.9432.41 ▼2.66
Add New Post /wp-admin/post-new.php1,526 ▼023.45 ▲0.53678.41 ▲8.2064.30 ▲2.48
Media Library /wp-admin/upload.php1,403 ▲64.24 ▲0.03104.76 ▼3.3746.17 ▲2.04

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ejls-easy-json-ld-setter/ejls-master.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (No Images) image missing
  • Requires at least: Version not formatted correctly
The official readme.txt might help

ejls-easy-json-ld-setter/ejls-master.php 92% from 13 tests

The main PHP script in "Structured Data of JSON-LD" version 2.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ejls-easy-json-ld-setter.php" instead of "ejls-master.php")

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
Good job! No executable or dangerous file extensions detected69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
dummyimage.png0.26KB0.23KB▼ 9.09%