84% wpsso-strip-schema-microdata

Code Review | WPSSO Strip Schema Microdata

WordPress plugin WPSSO Strip Schema Microdata scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-strip-schem...
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2016
  • Latest release: Nov 9, 2023
  • Number of updates: 1,809
  • Update frequency: every 1.4 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

600+ active /38,580 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.09MB] [CPU: ▼9.12ms] Passed 4 tests

A check of server-side resources used by WPSSO Strip Schema Microdata
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.28 ▼3.01
Dashboard /wp-admin3.41 ▲0.0647.30 ▼19.38
Posts /wp-admin/edit.php3.53 ▲0.1647.98 ▼1.58
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.31 ▼12.49
Media Library /wp-admin/upload.php3.34 ▲0.1035.88 ▲2.13

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WPSSO Strip Schema Microdata
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5914.72 ▲0.382.06 ▲0.2736.93 ▼5.30
Dashboard /wp-admin2,198 ▲205.54 ▼0.1982.29 ▼16.2739.28 ▼3.88
Posts /wp-admin/edit.php2,106 ▲61.95 ▼0.0139.50 ▲0.0536.40 ▲2.05
Add New Post /wp-admin/post-new.php1,532 ▲623.63 ▲0.45678.07 ▲35.9951.92 ▲0.25
Media Library /wp-admin/upload.php1,406 ▲64.20 ▲0.0499.29 ▼3.1340.30 ▼1.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wpsso-strip-schema-microdata/lib/submenu/strip-microdata.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/lib/register.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/gettext/gettext-lib-config.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/lib/filters-messages.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/wpsso-strip-schema-microdata.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/lib/filters.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/lib/config.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/lib/abstract/add-on.php
    • > /wp-content/plugins/wpsso-strip-schema-microdata/gettext/gettext-lib-abstract-com.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt is a good inspiration

wpsso-strip-schema-microdata/wpsso-strip-schema-microdata.php Passed 13 tests

The main PHP script in "WPSSO Strip Schema Microdata" version 3.0.0 is automatically included on every request by WordPress
109 characters long description:
Remove Schema Microdata and RDFa from the webpage for better Google Rich Results using Schema JSON-LD markup.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected821 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12374203692
PO File1222269
HTML232030
Markdown117030

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.78
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes222.22%
▷ Concrete classes777.78%
▷ Final classes00.00%
Methods41
▷ Static methods819.51%
▷ Public methods3175.61%
▷ Protected methods614.63%
▷ Private methods49.76%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png56.28KB21.33KB▼ 62.10%
images/icon-128x128.png20.38KB8.18KB▼ 59.87%