84% disable-yoast-ld-json

Code Review | Disable Yoast's Structured Data

WordPress plugin Disable Yoast's Structured Data scored84%from 54 tests.

About plugin

  • Plugin page: disable-yoast-ld-...
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Jan 1, 2020
  • Number of updates: 7
  • Update frequency: every 278.7 days
  • Top authors: lev0 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /5,290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.51ms] Passed 4 tests

Analyzing server-side resources used by Disable Yoast's Structured Data
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.20 ▼10.86
Dashboard /wp-admin3.31 ▲0.0144.83 ▼0.52
Posts /wp-admin/edit.php3.36 ▲0.0146.05 ▼6.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.14 ▼7.81
Media Library /wp-admin/upload.php3.23 ▲0.0133.93 ▼0.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Disable Yoast's Structured Data
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.121.70 ▲0.1240.31 ▼4.25
Dashboard /wp-admin2,209 ▲185.85 ▼0.03110.41 ▼3.4639.83 ▼7.62
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0239.99 ▲0.4333.26 ▼2.68
Add New Post /wp-admin/post-new.php1,533 ▼1022.94 ▲4.46581.91 ▼32.4649.72 ▼2.41
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.1195.92 ▲1.5842.89 ▲3.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-yoast-ld-json/disable-yoast-ld-json.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: structured data, seo, schemaorg

disable-yoast-ld-json/disable-yoast-ld-json.php Passed 13 tests

The main PHP file in "Disable Yoast's Structured Data" ver. 3.0.0 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Prevent conflict with other structured data plugins

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
Everything looks great! No dangerous files found in this plugin13 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11913

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin