84% websitescanner-custom-schema

Code Review | Websitescanner Custom Schema

WordPress plugin Websitescanner Custom Schema scored 84% from 54 tests.

About plugin

  • Plugin page: websitescanner-cu...
  • Plugin version: 1.3.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: May 31, 2019
  • Latest release: Jul 25, 2021
  • Number of updates: 20
  • Update frequency: every 39.3 days
  • Top authors: timvaniersel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active / 4,216 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.76ms] Passed 4 tests

Analyzing server-side resources used by Websitescanner Custom Schema
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0746.25 ▼22.05
Dashboard /wp-admin3.40 ▲0.0971.09 ▲15.04
Posts /wp-admin/edit.php3.52 ▲0.1653.70 ▲2.11
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.37 ▼2.79
Media Library /wp-admin/upload.php3.33 ▲0.0938.10 ▼0.30

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Websitescanner Custom Schema
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲4013.26 ▼1.221.96 ▲0.0444.12 ▼4.11
Dashboard /wp-admin2,210 ▲15.87 ▲0.08108.42 ▲2.0940.79 ▼0.39
Posts /wp-admin/edit.php2,103 ▲142.15 ▲0.1840.84 ▼0.2535.34 ▲0.64
Add New Post /wp-admin/post-new.php6,500 ▲4,95820.41 ▲1.851,091.76 ▲343.5565.14 ▲8.22
Media Library /wp-admin/upload.php1,389 ▲14.24 ▲0.00100.70 ▼10.3943.74 ▼0.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/websitescanner-custom-schema/admin/partials/websitescanner-custom-schema-post-editor-display.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: rich snippets, json-ld, custom schema, schema markup, schema...

websitescanner-custom-schema/websitescanner-custom-schema.php Passed 13 tests

Analyzing the main PHP file in "Websitescanner Custom Schema" version 1.3.7
60 characters long description:
Adds a field to the editor for custom JSON-ld schema markup.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin442 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11126456335
PO File1111452
CSS10031
JavaScript13024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions2
▷ Named functions2100.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