90% event-schema

Code Review | Event SEO: Event Schema / Structured Data: Google Rich Snippet Schema for Event

WordPress plugin Event SEO: Event Schema / Structured Data: Google Rich Snippet Schema for Event scored90%from 54 tests.

About plugin

  • Plugin page: event-schema
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2017
  • Latest release: Jul 26, 2023
  • Number of updates: 26
  • Update frequency: every 90.7 days
  • Top authors: xylus (84.62%)Dharm1025 (19.23%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /10,143 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.23MB] [CPU: ▼1.11ms] Passed 4 tests

This is a short check of server-side resources used by Event SEO: Event Schema / Structured Data: Google Rich Snippet Schema for Event
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2242.68 ▲1.82
Dashboard /wp-admin3.87 ▲0.5753.24 ▲5.84
Posts /wp-admin/edit.php3.63 ▲0.2846.51 ▲2.15
Add New Post /wp-admin/post-new.php6.10 ▲0.2280.64 ▼9.96
Media Library /wp-admin/upload.php3.44 ▲0.2236.03 ▲1.55
Event Schema /wp-admin/options-general.php?page=event_schema3.4131.19

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Event SEO: Event Schema / Structured Data: Google Rich Snippet Schema for Event
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.13 ▼1.225.15 ▲3.4244.24 ▼0.93
Dashboard /wp-admin2,287 ▲994.88 ▼0.16115.17 ▲5.5943.85 ▲5.37
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0234.27 ▼9.7833.02 ▼3.52
Add New Post /wp-admin/post-new.php1,519 ▼917.65 ▼0.76668.75 ▲12.0149.88 ▼3.05
Media Library /wp-admin/upload.php1,397 ▲94.24 ▼0.0297.87 ▼2.6442.52 ▼2.20
Event Schema /wp-admin/options-general.php?page=event_schema8442.0328.1034.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can look at the official readme.txt

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

The primary PHP file in "Event SEO: Event Schema / Structured Data: Google Rich Snippet Schema for Event" version 1.1.1 is used by WordPress to initiate all plugin functionality
78 characters long description:
Event Schema is automatically generates Google Rich Snippet Schema for Events.

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
No dangerous file extensions were detected1,454 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP162305091,229
CSS1248223
Markdown1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity21.27
▷ Minimum class complexity7.00
▷ Maximum class complexity89.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods59
▷ Static methods11.69%
▷ Public methods5694.92%
▷ Protected methods00.00%
▷ Private methods35.08%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/xt_logo.png8.77KB4.34KB▼ 50.47%