10% jsonld-semantic-tags

Code Review | JSONLD Semantic Tags

WordPress plugin JSONLD Semantic Tags scored 10% from 54 tests.

About plugin

  • Plugin page: jsonld-semantic-tags
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3
  • WordPress version: 5.8.1
  • First release: Dec 12, 2019
  • Latest release: May 27, 2021
  • Number of updates: 6
  • Update frequency: every 128.5 days
  • Top authors: deano1987 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 365 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/jsonld-semantic-tags/classes/ST_Taxonomy.php+457
    syntax error, unexpected end of file

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

Analyzing server-side resources used by JSONLD Semantic Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.49 ▲9.86
Dashboard /wp-admin3.06 ▲0.0044.41 ▲2.54
Posts /wp-admin/edit.php3.11 ▲0.0045.38 ▼4.93
Add New Post /wp-admin/post-new.php5.42 ▼0.0288.83 ▼573.19
Media Library /wp-admin/upload.php3.00 ▲0.0030.17 ▼1.73

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

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

Browser metrics Passed 4 tests

A check of browser resources used by JSONLD Semantic Tags
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.79 ▲0.2310.74 ▲1.1748.90 ▲1.11
Dashboard /wp-admin2,970 ▲406.05 ▲0.11131.59 ▼29.02113.06 ▼1.09
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0161.78 ▼0.8092.25 ▼2.81
Add New Post /wp-admin/post-new.php1,504 ▼9018.52 ▼0.17363.59 ▼17.64110.53 ▲8.48
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.04157.27 ▲12.17115.61 ▲1.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/jsonld-semantic-tags/templates/settings.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/jsonld-semantic-tags/classes/ST_Taxonomy.php on line 457
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/jsonld-semantic-tags/classes/ST_Taxonomy.php on line 457
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jsonld-semantic-tags/classes/ST_Widget.php:3

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: semantic, jsonld, tagging, citation, tag...

jsonld-semantic-tags/jsonld-semantic-tags.php Passed 13 tests

The entry point to "JSONLD Semantic Tags" version 1.1.2 is a PHP file that has certain tags in its header comment area
55 characters long description:
Allows you to create semantic tags for posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin609 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5197225531
Markdown136063
CSS24015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity20.50
▷ Minimum class complexity2.00
▷ Maximum class complexity51.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods1448.28%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin