74% amader-rsvp

Code Review | Amader RSVP For Wordpress

WordPress plugin Amader RSVP For Wordpress scored74%from 54 tests.

About plugin

  • Plugin page: amader-rsvp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 4, 2018
  • Latest release: Oct 4, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: mucasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.56ms] Passed 4 tests

Analyzing server-side resources used by Amader RSVP For Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.47 ▲2.71
Dashboard /wp-admin3.31 ▲0.0150.36 ▲3.35
Posts /wp-admin/edit.php3.36 ▲0.0143.75 ▼10.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.47 ▼5.08
Media Library /wp-admin/upload.php3.23 ▲0.0139.55 ▲2.15

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables
wp_amader_rsvp
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Amader RSVP For Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15513.58 ▼0.8011.98 ▲9.9939.73 ▼1.67
Dashboard /wp-admin2,212 ▲385.61 ▲0.0391.77 ▲0.8253.15 ▲10.71
Posts /wp-admin/edit.php2,114 ▲141.99 ▼0.0035.32 ▼5.1339.54 ▼2.28
Add New Post /wp-admin/post-new.php1,691 ▲15422.35 ▲4.30632.78 ▲8.7756.32 ▼7.28
Media Library /wp-admin/upload.php1,414 ▲144.18 ▼0.0599.61 ▲2.7956.46 ▲10.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 tables detected upon uninstall: 1 table
    • wp_amader_rsvp
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/amader-rsvp/src/rsvp-main.php:184
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amader-rsvp/amader-rsvp.php:23

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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
No tags were found

amader-rsvp/amader-rsvp.php Passed 13 tests

"Amader RSVP For Wordpress" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
90 characters long description:
Amazing RSVP plugin for free for you. Its easy and simple to use anywhere in your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected495 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP26327248
XML400217
CSS45928
JavaScript1052

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 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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin