74% qwiz-online-quizzes-and-flashcards

Code Review | Qwizcards | online quizzes and flashcards

WordPress plugin Qwizcards | online quizzes and flashcards scored74%from 54 tests.

About plugin

  • Plugin page: qwiz-online-quizz...
  • Plugin version: 3.88
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 1, 2014
  • Latest release: Oct 11, 2023
  • Number of updates: 1,197
  • Update frequency: every 2.8 days
  • Top authors: Dan Kirshner (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /57,657 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.56MB] [CPU: ▲2.30ms] Passed 4 tests

Server-side resources used by Qwizcards | online quizzes and flashcards
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5754.67 ▲13.15
Dashboard /wp-admin3.84 ▲0.5452.42 ▲1.70
Posts /wp-admin/edit.php3.96 ▲0.6055.03 ▲0.45
Add New Post /wp-admin/post-new.php6.91 ▲1.0298.58 ▲3.37
Media Library /wp-admin/upload.php3.77 ▲0.5442.92 ▲3.69
Qwizcards /wp-admin/options-general.php?page=qwiz-admin3.7643.04

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 105 new files
Database: 2 new tables, 9 new options
New tables
wp_qwiz_dataset_json2
wp_qwiz_textentry_suggestions
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
qwiz_textentry_suggestions_ver
dataset_json_db_table_update
theysaidso_admin_options
qwiz_textentry_suggestions_db_table_update
db_upgraded

Browser metrics Passed 4 tests

Qwizcards | online quizzes and flashcards: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,191 ▲44515.53 ▲1.2342.37 ▲40.4949.36 ▲8.51
Dashboard /wp-admin2,232 ▲445.82 ▲0.88107.54 ▼0.9137.71 ▼5.54
Posts /wp-admin/edit.php2,118 ▲262.02 ▲0.0335.81 ▼5.1833.17 ▼5.04
Add New Post /wp-admin/post-new.php1,628 ▲9519.24 ▼3.87742.36 ▲64.5937.75 ▼16.89
Media Library /wp-admin/upload.php1,414 ▲264.16 ▼0.15104.95 ▼8.5453.09 ▲4.72
Qwizcards /wp-admin/options-general.php?page=qwiz-admin1,4193.5163.3026.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_qwiz_dataset_json2
    • wp_qwiz_textentry_suggestions
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • qwiz_textentry_suggestions_db_table_update
    • db_upgraded
    • widget_recent-posts
    • qwiz_textentry_suggestions_ver
    • widget_recent-comments
    • dataset_json_db_table_update
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/qwiz-online-quizzes-and-flashcards/payment_received.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: flashcards, labeled diagrams, interactive quiz, quiz

qwiz-online-quizzes-and-flashcards/qwizcards-header.php 92% from 13 tests

The entry point to "Qwizcards | online quizzes and flashcards" version 3.88 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("qwiz-online-quizzes-and-flashcards.php" instead of "qwizcards-header.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected47,073 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript271681,04336,999
CSS10342755,268
PHP85854,782
SVG80024

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions86
▷ Named functions8598.84%
▷ Anonymous functions11.16%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
44 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-bg_gloss-wave_35_f6a828_500x100.png5.68KB1.83KB▼ 67.77%
images/add_icon.png2.78KB1.75KB▼ 36.95%
images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%