84% quiz-maker-save-progress

Code Review | Quiz Maker - Save Progress

WordPress plugin Quiz Maker - Save Progress scored 84% from 54 tests.

About plugin

  • Plugin page: quiz-maker-save-p...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2021
  • Latest release: Aug 24, 2021
  • Number of updates: 11
  • Update frequency: every 5.0 days
  • Top authors: nobrainer67 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 2,668 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▲4.40ms] Passed 4 tests

A check of server-side resources used by Quiz Maker - Save Progress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0648.93 ▲8.59
Dashboard /wp-admin3.37 ▲0.0656.85 ▲7.58
Posts /wp-admin/edit.php3.42 ▲0.0654.91 ▲4.20
Add New Post /wp-admin/post-new.php5.95 ▲0.06101.20 ▲0.11
Media Library /wp-admin/upload.php3.29 ▲0.0639.39 ▲5.70
Quiz Maker - Save Progress Settings /wp-admin/options-general.php?page=quizz-maker-save-progress-settings3.2533.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Quiz Maker - Save Progress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.34 ▼1.442.45 ▲0.1147.95 ▲0.62
Dashboard /wp-admin2,210 ▲224.87 ▼1.04117.55 ▲12.9645.89 ▲4.41
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0143.89 ▲3.5037.97 ▲3.30
Add New Post /wp-admin/post-new.php1,536 ▲122.86 ▼0.18626.43 ▲20.3954.74 ▲0.61
Media Library /wp-admin/upload.php1,392 ▲44.26 ▼0.0194.92 ▼8.4742.06 ▼1.41
Quiz Maker - Save Progress Settings /wp-admin/options-general.php?page=quizz-maker-save-progress-settings8092.0625.2829.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quiz-maker-save-progress/list-saves.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quiz-maker-save-progress/inject-footer.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quiz-maker-save-progress/save-progress.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/quiz-maker-save-progress/options-page.php:121
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quiz-maker-save-progress/save-progress.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
6 plugin tags: test, questionnaire, exam, save progress, quiz maker...

quiz-maker-save-progress/quiz-maker-save-progress.php 92% from 13 tests

This is the main PHP file of "Quiz Maker - Save Progress" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin348 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP65324348

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin