84% protect-schemaorg-markup-in-html-editor

Code Review | Protect schema.org markup in HTML editor

WordPress plugin Protect schema.org markup in HTML editor scored84%from 54 tests.

About plugin

  • Plugin page: protect-schemaorg...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 8, 2016
  • Latest release: Nov 15, 2023
  • Number of updates: 35
  • Update frequency: every 77.6 days
  • Top authors: Ecwid (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /11,574 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Protect schema.org markup in HTML editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.66 ▼4.35
Dashboard /wp-admin3.32 ▲0.0243.71 ▼5.29
Posts /wp-admin/edit.php3.38 ▲0.0146.86 ▲2.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0193.32 ▼9.14
Media Library /wp-admin/upload.php3.25 ▲0.0134.73 ▲0.72

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Protect schema.org markup in HTML editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.28 ▲1.131.71 ▼3.4241.74 ▼1.95
Dashboard /wp-admin2,195 ▲155.58 ▼0.1092.19 ▲2.2937.86 ▼0.55
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0840.38 ▲0.3937.34 ▼2.05
Add New Post /wp-admin/post-new.php1,526 ▼023.29 ▼0.22698.49 ▲81.8360.24 ▲2.86
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.02100.43 ▼9.2244.97 ▼1.10

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/protect-schemaorg-markup-in-html-editor/tinymce-schemaorg-markup.php:134

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
5 plugin tags: html editor, microdata, rich snippets, tinymce, schemaorg

protect-schemaorg-markup-in-html-editor/tinymce-schemaorg-markup.php 92% from 13 tests

The main PHP file in "Protect schema.org markup in HTML editor" ver. 0.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("protect-schemaorg-markup-in-html-editor.php" instead of "tinymce-schemaorg-markup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected109 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1197109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin