84% qualtrics-survey-embeds

Code Review | Qualtrics Survey Embeds

WordPress plugin Qualtrics Survey Embeds scored84%from 54 tests.

About plugin

  • Plugin page: qualtrics-survey-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: Aug 10, 2015
  • Number of updates: 8
  • Update frequency: every 40.6 days
  • Top authors: michaelryanmcneill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,865 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.21ms] Passed 4 tests

An overview of server-side resources used by Qualtrics Survey Embeds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.43 ▼2.04
Dashboard /wp-admin3.33 ▲0.0248.07 ▼8.55
Posts /wp-admin/edit.php3.38 ▲0.0246.47 ▼5.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.56 ▲3.29
Media Library /wp-admin/upload.php3.25 ▲0.0238.90 ▲3.68
Qualtrics Settings /wp-admin/options-general.php?page=qse3.2234.29

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Qualtrics Survey Embeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▲0.171.77 ▲0.2738.96 ▼3.98
Dashboard /wp-admin2,204 ▲275.65 ▲0.1190.35 ▼13.6038.78 ▼10.05
Posts /wp-admin/edit.php2,120 ▲202.24 ▲0.2638.35 ▼2.8539.75 ▲2.05
Add New Post /wp-admin/post-new.php1,543 ▲1418.15 ▼5.52646.37 ▲27.9370.37 ▲22.71
Media Library /wp-admin/upload.php1,416 ▲194.21 ▲0.08104.64 ▲6.5444.51 ▲2.46
Qualtrics Settings /wp-admin/options-general.php?page=qse8781.7727.5127.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/qualtrics-survey-embeds/inc/settings/default.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_embed_register_handler() in wp-content/plugins/qualtrics-survey-embeds/inc/embed.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/qualtrics-survey-embeds/qualtrics-embed.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: qualtrics, oembed, embed, surveys

qualtrics-survey-embeds/qualtrics-embed.php 92% from 13 tests

The main PHP script in "Qualtrics Survey Embeds" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("qualtrics-survey-embeds.php" instead of "qualtrics-embed.php")

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
Good job! No executable or dangerous file extensions detected352 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP435117342
Markdown1507
JavaScript1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity27.50
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
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
PNG images were not found in this plugin