68% ari-stream-quiz

Code Review | ARI Stream Quiz - WordPress Quizzes Builder

WordPress plugin ARI Stream Quiz - WordPress Quizzes Builder scored68%from 54 tests.

About plugin

  • Plugin page: ari-stream-quiz
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 1, 2016
  • Latest release: Dec 2, 2023
  • Number of updates: 126
  • Update frequency: every 20.5 days
  • Top authors: arisoft (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

3,000+ active /56,931 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.40MB] [CPU: ▼4.73ms] Passed 4 tests

An overview of server-side resources used by ARI Stream Quiz - WordPress Quizzes Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3742.58 ▲7.76
Dashboard /wp-admin3.77 ▲0.4250.46 ▼13.49
Posts /wp-admin/edit.php3.82 ▲0.4647.23 ▼3.34
Add New Post /wp-admin/post-new.php6.31 ▲0.4295.26 ▼7.60
Media Library /wp-admin/upload.php3.63 ▲0.4036.85 ▲5.51
/wp-admin/admin.php?page=ari-stream-quiz-quiz3.6834.59
Quizzes /wp-admin/admin.php?page=ari-stream-quiz-quizzes3.8138.87
Settings /wp-admin/admin.php?page=ari-stream-quiz-settings3.7332.61

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 335 new files
Database: 4 new tables, 7 new options
New tables
wp_asq_answers
wp_asq_questions
wp_asq_result_templates
wp_asq_quizzes
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
ari_stream_quiz_version
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for ARI Stream Quiz - WordPress Quizzes Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8014.34 ▲0.112.02 ▲0.5043.35 ▲6.30
Dashboard /wp-admin2,225 ▲445.59 ▼0.1284.10 ▼20.8236.80 ▼1.03
Posts /wp-admin/edit.php2,127 ▲271.96 ▼0.0639.39 ▼0.0437.35 ▲3.45
Add New Post /wp-admin/post-new.php1,548 ▲2223.72 ▲0.50682.68 ▲10.4853.74 ▼0.59
Media Library /wp-admin/upload.php1,424 ▲244.19 ▼0.12101.47 ▼14.6441.86 ▼6.30
/wp-admin/admin.php?page=ari-stream-quiz-quiz1,1412.2943.0642.31
Quizzes /wp-admin/admin.php?page=ari-stream-quiz-quizzes1,1442.2841.6928.68
Settings /wp-admin/admin.php?page=ari-stream-quiz-settings1,8852.7049.0426.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 4 tables
    • wp_asq_questions
    • wp_asq_quizzes
    • wp_asq_answers
    • wp_asq_result_templates
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • ari_stream_quiz_version
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ari-stream-quiz/ari-stream-quiz.php
    • > /wp-content/plugins/ari-stream-quiz/loader.php
    • > /wp-content/plugins/ari-stream-quiz/includes/views/quiz-session/tmpl/image.php
  • 191× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Http\\Message\\Encoding\\FilteredStream' not found in wp-content/plugins/ari-stream-quiz/libraries/vendor/vendor/php-http/message/src/Encoding/DeflateStream.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Ari_Stream_Quiz_Themes\\Loader' not found in wp-content/plugins/ari-stream-quiz/themes/standard/class-loader.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Http\\Discovery\\Exception\\StrategyUnavailableException' not found in wp-content/plugins/ari-stream-quiz/libraries/vendor/vendor/php-http/discovery/src/Exception/PuliUnavailableException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Ari_Stream_Quiz\\Views\\Site_Base' not found in wp-content/plugins/ari-stream-quiz/includes/views/quiz-session/class-html.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Ari\\Controllers\\Ajax' not found in wp-content/plugins/ari-stream-quiz/includes/controllers/quiz-session/class-ajax-collect-data.php:8
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/ari-stream-quiz/includes/views/quiz-session/tmpl/default.php on line 8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ari-stream-quiz/libraries/vendor/vendor/guzzlehttp/psr7/src/CachingStream.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Ari\\Controllers\\Controller' not found in wp-content/plugins/ari-stream-quiz/libraries/arisoft/core/controllers/class-display.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Ari\\Controllers\\Controller' not found in wp-content/plugins/ari-stream-quiz/includes/controllers/quizzes/class-sort.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Ari\\Controllers\\Controller' not found in wp-content/plugins/ari-stream-quiz/includes/controllers/quizzes/class-delete.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

ari-stream-quiz/ari-stream-quiz.php Passed 13 tests

The principal PHP file in "ARI Stream Quiz - WordPress Quizzes Builder" v. 1.3.1 is loaded by WordPress automatically on each request
51 characters long description:
Powerful and easy to use quiz plugin for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin20,900 lines of code in 312 files:
LanguageFilesBlank linesComment linesLines of code
PHP2393,6965,28713,610
JavaScript20534301,749
Markdown2096301,461
JSON17201,432
PO File35226181,430
CSS49531,087
SQL13067
XML21331
SVG40019
YAML20014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity64.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces54
Interfaces21
Traits6
Classes185
▷ Abstract classes42.16%
▷ Concrete classes18197.84%
▷ Final classes4223.20%
Methods1,063
▷ Static methods15814.86%
▷ Public methods88483.16%
▷ Protected methods938.75%
▷ Private methods868.09%
Functions102
▷ Named functions3231.37%
▷ Anonymous functions7068.63%
Constants59
▷ Global constants3966.10%
▷ Class constants2033.90%
▷ Public constants20100.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