79% remove-schema

Code Review | Remove Schema

WordPress plugin Remove Schema scored79%from 54 tests.

About plugin

  • Plugin page: remove-schema
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Apr 20, 2019
  • Latest release: Jun 16, 2021
  • Number of updates: 22
  • Update frequency: every 35.8 days
  • Top authors: timvaniersel (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /17,461 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.29ms] Passed 4 tests

This is a short check of server-side resources used by Remove Schema
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.97 ▲1.98
Dashboard /wp-admin3.43 ▲0.1250.57 ▼2.69
Posts /wp-admin/edit.php3.52 ▲0.1647.75 ▼0.99
Add New Post /wp-admin/post-new.php6.04 ▲0.1595.31 ▼3.44
Media Library /wp-admin/upload.php3.35 ▲0.1235.97 ▲4.31
Remove Schema /wp-admin/options-general.php?page=remove-schema3.3731.63

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Schema
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.19 ▼1.221.76 ▼0.3544.07 ▼2.07
Dashboard /wp-admin2,213 ▲254.81 ▼0.06100.99 ▼8.7239.43 ▼0.23
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0038.88 ▼0.7234.47 ▼1.43
Add New Post /wp-admin/post-new.php6,254 ▲4,84326.14 ▲8.05838.87 ▲224.8058.55 ▲12.29
Media Library /wp-admin/upload.php1,392 ▲104.21 ▲0.0295.26 ▼5.0040.84 ▼13.93
Remove Schema /wp-admin/options-general.php?page=remove-schema8952.0825.0927.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=remove-schema
    • > Notice in wp-content/plugins/remove-schema/admin/partials/remove-schema-admin-display.php+45
    Trying to access array offset on value of type bool

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/remove-schema/admin/partials/remove-schema-post-editor-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/remove-schema/admin/partials/remove-schema-post-editor-display.php:20
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/remove-schema/admin/partials/remove-schema-post-editor-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/remove-schema/admin/partials/remove-schema-admin-display.php:20
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/remove-schema/admin/partials/remove-schema-post-editor-display.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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: schema, schema markup, structured data

remove-schema/remove-schema.php Passed 13 tests

This is the main PHP file of "Remove Schema" version 1.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Remove all Microdata, RDFa and/or JSON-ld that you don’t want on your page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin652 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13195568503
PO File13752114
JavaScript163032
CSS1143

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin