84% schema-app-structured-data-for-schemaorg

Code Review | Schema App Structured Data

WordPress plugin Schema App Structured Data scored84%from 54 tests.

About plugin

  • Plugin page: schema-app-struct...
  • Plugin version: 1.22.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2015
  • Latest release: Nov 20, 2023
  • Number of updates: 243
  • Update frequency: every 12.1 days
  • Top authors: vberkel (64.61%)milanmk (20.58%)schemaappnick (13.99%)abbaspouraa (2.06%)

Code review

54 tests

User reviews

35 reviews

Install metrics

10,000+ active /568,706 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.56MB] [CPU: ▲4.18ms] Passed 4 tests

This is a short check of server-side resources used by Schema App Structured Data
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5746.17 ▲6.16
Dashboard /wp-admin3.90 ▲0.6051.29 ▲0.93
Posts /wp-admin/edit.php3.95 ▲0.6053.16 ▲0.62
Add New Post /wp-admin/post-new.php6.45 ▲0.5699.71 ▲15.11
Media Library /wp-admin/upload.php3.76 ▲0.5342.65 ▲9.02
Schema App /wp-admin/options-general.php?page=schema-app-setting3.7541.38

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
schema_option_name
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Schema App Structured Data
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4314.14 ▼0.221.88 ▲0.2244.18 ▼2.98
Dashboard /wp-admin2,210 ▲365.58 ▼0.0687.13 ▼12.5443.75 ▼2.49
Posts /wp-admin/edit.php2,112 ▲92.00 ▼0.0037.54 ▼0.9338.34 ▲3.35
Add New Post /wp-admin/post-new.php6,322 ▲4,79626.02 ▲2.38867.54 ▲273.5461.10 ▲6.59
Media Library /wp-admin/upload.php1,412 ▲184.25 ▼0.0397.02 ▼3.4143.89 ▼0.04
Schema App /wp-admin/options-general.php?page=schema-app-setting1,5953.2757.8539.46

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: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • schema_option_name
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please take a closer look at the following
  • 14× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/HunchSchema/Search.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/HunchSchema/Blog.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/SchemaSettings.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/HunchSchema/Thing.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/HunchSchema/Author.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/HunchSchema/Category.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/SchemaServer.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/SchemaEditor.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/HunchSchema/Tag.php
    • > /wp-content/plugins/schema-app-structured-data-for-schemaorg/lib/HunchSchema/Page.php

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Screenshot #5 (Link to Validation) image required
Please take inspiration from this readme.txt

schema-app-structured-data-for-schemaorg/hunch-schema.php 92% from 13 tests

"Schema App Structured Data" version 1.22.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("schema-app-structured-data-for-schemaorg.php" instead of "hunch-schema.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,729 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP157184492,497
JavaScript34611200
CSS19432

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity34.23
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods128
▷ Static methods21.56%
▷ Public methods11589.84%
▷ Protected methods1310.16%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
PNG images were not found in this plugin