79% interact-quiz-embed

Code Review | Interact: Embed A Quiz On Your Site

WordPress plugin Interact: Embed A Quiz On Your Site scored79%from 54 tests.

About plugin

  • Plugin page: interact-quiz-embed
  • Plugin version: 3.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 15, 2014
  • Latest release: Mar 29, 2023
  • Number of updates: 34
  • Update frequency: every 92.6 days
  • Top authors: tryinteract (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

5,000+ active /51,402 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Interact: Embed A Quiz On Your Site
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.58 ▲4.49
Dashboard /wp-admin3.31 ▲0.0151.76 ▲1.14
Posts /wp-admin/edit.php3.36 ▲0.0050.00 ▼4.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.49 ▼10.00
Media Library /wp-admin/upload.php3.23 ▲0.0036.10 ▲3.51
Interact /wp-admin/options-general.php?page=interact_plugin3.1732.41

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Interact: Embed A Quiz On Your Site
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.16 ▼0.212.39 ▼2.2843.49 ▲0.25
Dashboard /wp-admin2,210 ▲225.03 ▼0.03106.81 ▼0.7939.29 ▼6.54
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0339.70 ▼0.6136.74 ▼2.29
Add New Post /wp-admin/post-new.php1,517 ▲317.85 ▲0.31608.87 ▼37.0154.75 ▲2.89
Media Library /wp-admin/upload.php1,389 ▲74.27 ▲0.03103.81 ▲3.5345.18 ▲2.18
Interact /wp-admin/options-general.php?page=interact_plugin9032.0223.7533.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=interact_plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=interact_plugin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=interact_plugin
    • > Notice in wp-content/plugins/interact-quiz-embed/interact-quiz-embed.php+285
    Undefined variable: updatedPromoId
    • > GET request to /wp-admin/options-general.php?page=interact_plugin
    • > Notice in wp-content/plugins/interact-quiz-embed/interact-quiz-embed.php+286
    Undefined variable: newId

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/interact-quiz-embed/interact-quiz-embed.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: interact, quiz, shortcode, promotion, giveaway...

interact-quiz-embed/interact-quiz-embed.php Passed 13 tests

The main file in "Interact: Embed A Quiz On Your Site" v. 3.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
69 characters long description:
Use this plugin to embed your Interact quiz into your Wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin202 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15745196
JavaScript1006

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin