84% easy-json-shortcode

Code Review | Easy FAQ Schema Markup Shortcode

WordPress plugin Easy FAQ Schema Markup Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: easy-json-shortcode
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 20, 2020
  • Latest release: Aug 11, 2022
  • Number of updates: 19
  • Update frequency: every 43.1 days
  • Top authors: thomwebsitecom (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,615 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
This plugin's installer ran successfully

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

A check of server-side resources used by Easy FAQ Schema Markup Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.20 ▲0.40
Dashboard /wp-admin3.31 ▲0.0042.82 ▼3.85
Posts /wp-admin/edit.php3.36 ▲0.0048.57 ▲1.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.04 ▲3.60
Media Library /wp-admin/upload.php3.23 ▲0.0037.32 ▲0.59

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy FAQ Schema Markup Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.041.67 ▼0.0939.83 ▼9.63
Dashboard /wp-admin2,206 ▲184.86 ▼1.00108.23 ▲6.9438.34 ▼5.40
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0739.00 ▲4.3834.91 ▲2.23
Add New Post /wp-admin/post-new.php1,514 ▼2317.73 ▼5.50620.92 ▼71.1247.49 ▼7.83
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0498.19 ▼0.8042.32 ▼4.65

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 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/easy-json-shortcode/easy-json-shortcode.php:41

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 97% 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: These screenshots require images: #1 (Screenshots of rich results for 1 question and answer), #2 (Screenshots of rich results from 3 questions and answers)
The official readme.txt is a good inspiration

easy-json-shortcode/easy-json-shortcode.php Passed 13 tests

The principal PHP file in "Easy FAQ Schema Markup Shortcode" v. 1.2 is loaded by WordPress automatically on each request
86 characters long description:
This plugin inserts shortcodes to structure FAQs to schema for rich results on Google.

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
Everything looks great! No dangerous files found in this plugin63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193263

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
6 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png2.24KB2.40KB0.00%
banner-1544x500.png4.50KB5.08KB0.00%
screenshot-2.png31.58KB32.62KB0.00%
icon-256x256.png1.48KB1.54KB0.00%
icon-128x128.png0.77KB0.81KB0.00%