79% quick-quiz

Code Review | Quick Quiz

WordPress plugin Quick Quiz scored79%from 54 tests.

About plugin

  • Plugin page: quick-quiz
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.5
  • WordPress version: 6.3.1
  • First release: Jan 7, 2016
  • Latest release: Jan 7, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: adcdao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /966 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.19MB] [CPU: ▼2.87ms] Passed 4 tests

Analyzing server-side resources used by Quick Quiz
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2040.70 ▼8.23
Dashboard /wp-admin3.50 ▲0.1948.99 ▼4.81
Posts /wp-admin/edit.php3.61 ▲0.2553.02 ▼1.36
Add New Post /wp-admin/post-new.php6.08 ▲0.19103.54 ▲4.88
Media Library /wp-admin/upload.php3.42 ▲0.1940.05 ▲2.91

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: 7 new tables, 7 new options
New tables
wp_quick_quiz_question_list
wp_quick_quiz_exam_data_answers
wp_quick_quiz_data
wp_quick_quiz_questions
wp_quick_quiz_exam_data_questions
wp_quick_quiz_answers
wp_quick_quiz_exam_data
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
custom_table_quick_quiz_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Quick Quiz
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9714.47 ▲0.081.82 ▼0.3142.72 ▼0.55
Dashboard /wp-admin2,206 ▲155.84 ▲0.95108.95 ▲5.2179.57 ▲34.71
Posts /wp-admin/edit.php2,115 ▲262.03 ▲0.0238.62 ▲0.2635.19 ▼0.97
Add New Post /wp-admin/post-new.php1,683 ▲16422.17 ▼0.92721.83 ▲37.4753.62 ▼13.12
Media Library /wp-admin/upload.php1,414 ▲264.25 ▼0.01110.54 ▲8.1650.81 ▲4.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • Zombie WordPress options detected upon uninstall: 7 options
    • custom_table_quick_quiz_db_version
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Screenshot #3 (Add question) image missing
  • Screenshots: Add a description for screenshot #-3 in quick-quiz/assets to your readme.txt
You can look at the official readme.txt

quick-quiz/quick-quiz.php Passed 13 tests

Analyzing the main PHP file in "Quick Quiz" version 1.1
19 characters long description:
Simple quiz creator

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected6,053 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS320114,401
PHP4624124985
JavaScript24919438
SVG100229

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/images/quiz-icon3.png0.60KB0.49KB▼ 17.84%