83% rsvpmaker-widget

Code Review | RSVPMaker Widget

WordPress plugin RSVPMaker Widget scored83%from 54 tests.

About plugin

  • Plugin page: rsvpmaker-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Dec 2, 2019
  • Latest release: Aug 1, 2020
  • Number of updates: 6
  • Update frequency: every 49.2 days
  • Top authors: davidfcarr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,510 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.02MB] [CPU: ▼6.06ms] Passed 4 tests

A check of server-side resources used by RSVPMaker Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.68 ▲0.98
Dashboard /wp-admin3.32 ▲0.0249.32 ▼5.29
Posts /wp-admin/edit.php3.37 ▲0.0147.42 ▼2.74
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.94 ▼17.19
Media Library /wp-admin/upload.php3.24 ▲0.0137.69 ▲2.56

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_rsvpmaker_by_json
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

RSVPMaker Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.35 ▼0.201.68 ▲0.1544.68 ▲5.52
Dashboard /wp-admin2,195 ▲155.63 ▲0.0493.43 ▲0.4740.13 ▼1.36
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0133.21 ▼3.4635.97 ▼3.80
Add New Post /wp-admin/post-new.php6,242 ▲4,71620.64 ▼2.49874.90 ▲239.8754.17 ▼1.60
Media Library /wp-admin/upload.php1,403 ▼04.18 ▲0.0198.27 ▼6.0842.69 ▼2.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_rsvpmaker_by_json
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rsvpmaker-widget/ui.php:5

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Event listings displayed in the body of a page and also in the sidebar widget.)
Please take inspiration from this readme.txt

rsvpmaker-widget/rsvpmaker-by-json-widget.php 85% from 13 tests

"RSVPMaker Widget" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress 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 ("rsvpmaker-widget.php" instead of "rsvpmaker-by-json-widget.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 311 characters long)

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 plugin7,512 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,192
JavaScript41135133
PHP31973130
Sass33138
Markdown18017
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png195.12KB63.02KB▼ 67.70%