84% events-manager-rich-snippets

Code Review | Events Manager Rich Snippet

WordPress plugin Events Manager Rich Snippet scored84%from 54 tests.

About plugin

  • Plugin page: events-manager-ri...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Oct 2, 2020
  • Number of updates: 6
  • Update frequency: every 318.8 days
  • Top authors: Milmor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,248 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: ▼8.46ms] Passed 4 tests

This is a short check of server-side resources used by Events Manager Rich Snippet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0141.52 ▼4.77
Dashboard /wp-admin3.36 ▼0.0351.17 ▼14.35
Posts /wp-admin/edit.php3.41 ▲0.0152.72 ▲1.34
Add New Post /wp-admin/post-new.php5.94 ▲0.0189.56 ▼14.82
Media Library /wp-admin/upload.php3.28 ▲0.0138.48 ▲0.12

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Events Manager Rich Snippet
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.391.87 ▲0.1043.90 ▼3.19
Dashboard /wp-admin2,192 ▲155.50 ▼0.1788.39 ▼10.3840.78 ▼2.76
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0532.82 ▼4.7333.97 ▲1.00
Add New Post /wp-admin/post-new.php1,526 ▼423.26 ▲0.34656.81 ▲18.4960.87 ▲12.99
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.0099.81 ▼2.3145.57 ▲0.33

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/events-manager-rich-snippets/events-manager-rich-snippet.php:53

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

events-manager-rich-snippets/events-manager-rich-snippet.php 92% from 13 tests

The primary PHP file in "Events Manager Rich Snippet" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("events-manager-rich-snippets.php" instead of "events-manager-rich-snippet.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin39 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161039

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.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
No PNG files were detected