84% structured-data-for-events-manager

Code Review | Structured data for Events Manager

WordPress plugin Structured data for Events Manager scored84%from 54 tests.

About plugin

  • Plugin page: structured-data-f...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 26, 2016
  • Latest release: Oct 21, 2018
  • Number of updates: 11
  • Update frequency: every 62.9 days
  • Top authors: aekschoko (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,374 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.12ms] Passed 4 tests

Analyzing server-side resources used by Structured data for Events Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.73 ▼1.43
Dashboard /wp-admin3.31 ▲0.0048.91 ▼3.25
Posts /wp-admin/edit.php3.36 ▲0.0047.35 ▼8.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.71 ▼15.68
Media Library /wp-admin/upload.php3.23 ▲0.0037.50 ▲0.17

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Structured data for Events Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2913.28 ▼1.084.47 ▲2.4045.68 ▼1.18
Dashboard /wp-admin2,221 ▲275.95 ▲0.88113.57 ▲1.0842.98 ▼1.63
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0036.30 ▼5.3733.84 ▼2.68
Add New Post /wp-admin/post-new.php1,531 ▲523.36 ▲5.77662.32 ▼49.8852.26 ▼4.65
Media Library /wp-admin/upload.php1,403 ▲34.24 ▼0.01108.36 ▼6.4146.24 ▼3.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/structured-data-for-events-manager/structured-data-for-events-manager.php

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: schemaorg, events, json-ld, structured data, events manager

structured-data-for-events-manager/structured-data-for-events-manager.php Passed 13 tests

"Structured data for Events Manager" version 0.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
107 characters long description:
Automatically adds structured data to events posts created with the Events Manager plugin by JSON-LD method

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13536117
PO File2121274

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin