83% fudugo-schema

Code Review | WP Schema & Structured Data

WordPress plugin WP Schema & Structured Data scored83%from 54 tests.

About plugin

  • Plugin page: fudugo-schema
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.6
  • WordPress version: 6.3.1
  • First release: Jan 12, 2021
  • Latest release: Apr 12, 2021
  • Number of updates: 11
  • Update frequency: every 8.2 days
  • Top authors: fudugo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /587 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.75ms] Passed 4 tests

An overview of server-side resources used by WP Schema & Structured Data
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.04 ▼4.80
Dashboard /wp-admin3.33 ▲0.0344.58 ▼4.13
Posts /wp-admin/edit.php3.45 ▲0.0947.43 ▲2.71
Add New Post /wp-admin/post-new.php5.95 ▲0.07116.00 ▲29.22
Media Library /wp-admin/upload.php3.25 ▲0.0334.47 ▲3.23
Licence /wp-admin/admin.php?page=fs-licence-settings3.2531.93
General /wp-admin/admin.php?page=fs-schema3.3233.35
Settings /wp-admin/admin.php?page=fs-settings3.3035.83

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

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

Browser metrics Passed 4 tests

WP Schema & Structured Data: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.60 ▼0.711.56 ▼0.2839.13 ▼5.56
Dashboard /wp-admin2,241 ▲565.86 ▲0.7595.88 ▼9.3137.95 ▼1.76
Posts /wp-admin/edit.php2,124 ▲352.03 ▲0.0234.55 ▼6.5336.76 ▼0.04
Add New Post /wp-admin/post-new.php8,176 ▲6,65726.01 ▲2.85941.86 ▲289.1780.27 ▲25.51
Media Library /wp-admin/upload.php1,426 ▲384.22 ▲0.0698.74 ▼2.4944.88 ▲0.55
Licence /wp-admin/admin.php?page=fs-licence-settings8622.0331.5329.92
General /wp-admin/admin.php?page=fs-schema1,1923.1339.7758.19
Settings /wp-admin/admin.php?page=fs-settings1,0933.0039.6174.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • _fssc_use_data
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fudugo-schema/templates/schema-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/fudugo-schema/templates/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fudugo-schema/includes/class-fs-schema-output.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fudugo-schema/includes/class-fs-schema-function.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Admin Settings), #2 (Single Page setting), #3 (Product Page Setting)
The official readme.txt might help

fudugo-schema/fs-schema.php 77% from 13 tests

"WP Schema & Structured Data" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fudugo-schema.php" instead of "fs-schema.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,289 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12861042,752
CSS1310358
JavaScript1194179

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity47.43
▷ Minimum class complexity2.00
▷ Maximum class complexity179.00
Average method complexity8.74
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods42
▷ Static methods819.05%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin