84% wpm-schema

Code Review | Schema Extensions for Yoast SEO by WP Munich

WordPress plugin Schema Extensions for Yoast SEO by WP Munich scored84%from 54 tests.

About plugin

  • Plugin page: wpm-schema
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 24, 2021
  • Latest release: Aug 25, 2021
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: wpmunich (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.60ms] Passed 4 tests

A check of server-side resources used by Schema Extensions for Yoast SEO by WP Munich
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.34 ▼1.31
Dashboard /wp-admin3.51 ▲0.2047.57 ▼8.16
Posts /wp-admin/edit.php3.56 ▲0.2048.90 ▲3.90
Add New Post /wp-admin/post-new.php6.03 ▲0.1494.60 ▲8.15
Media Library /wp-admin/upload.php3.37 ▲0.1335.92 ▲3.18

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Schema Extensions for Yoast SEO by WP Munich
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.42 ▼0.951.71 ▼0.4143.57 ▲2.55
Dashboard /wp-admin2,206 ▲214.87 ▼0.98108.29 ▲7.8539.70 ▼0.80
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0139.53 ▲4.1735.05 ▼0.73
Add New Post /wp-admin/post-new.php1,536 ▲223.29 ▲0.02587.66 ▼110.1761.23 ▲9.41
Media Library /wp-admin/upload.php1,385 ▼64.20 ▼0.0394.02 ▼9.3539.58 ▼4.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Interface 'WpMunich\\wpmschema\\Component_Interface' not found in wp-content/plugins/wpm-schema/inc/UserSettings/Component.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'WpMunich\\wpmschema\\Component_Interface' not found in wp-content/plugins/wpm-schema/inc/SVG/Component.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'WpMunich\\wpmschema\\Component_Interface' not found in wp-content/plugins/wpm-schema/inc/Schema_Honorific/Component.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'WpMunich\\wpmschema\\Component_Interface' not found in wp-content/plugins/wpm-schema/inc/i18n/Component.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Yoast\\WP\\SEO\\Generators\\Schema\\Person' not found in wp-content/plugins/wpm-schema/inc/Schema_Spouse/Spouse.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'WpMunich\\wpmschema\\Component_Interface' not found in wp-content/plugins/wpm-schema/inc/Schema_Spouse/Component.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: yoast, schema, structured data, seo

wpm-schema/wpm-schema.php 92% from 13 tests

"Schema Extensions for Yoast SEO by WP Munich" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,037 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP232517531,034
SVG1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.73
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces2
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods82
▷ Static methods1821.95%
▷ Public methods7490.24%
▷ Protected methods44.88%
▷ Private methods44.88%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected