84% quizz

Code Review | Quizz

WordPress plugin Quizz scored84%from 54 tests.

About plugin

  • Plugin page: quizz
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 25, 2014
  • Latest release: Mar 30, 2014
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: 13llama (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,324 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.06MB] [CPU: ▼4.21ms] Passed 4 tests

This is a short check of server-side resources used by Quizz
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.0644.62 ▼1.67
Dashboard /wp-admin3.62 ▲0.0653.92 ▲4.16
Posts /wp-admin/edit.php3.74 ▲0.0652.81 ▼8.46
Add New Post /wp-admin/post-new.php6.21 ▲0.0692.37 ▼10.87
Media Library /wp-admin/upload.php3.55 ▲0.0646.49 ▲8.31
Questions /wp-admin/edit.php?post_type=question3.6042.49
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=question3.5442.94
Add New Question /wp-admin/post-new.php?post_type=question3.7458.40
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=question3.5438.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
category_children
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Quizz
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.75 ▲0.392.05 ▲0.3144.07 ▲0.39
Dashboard /wp-admin2,225 ▲485.59 ▼0.0989.27 ▼5.5738.44 ▼2.30
Posts /wp-admin/edit.php2,133 ▲302.01 ▼0.0040.07 ▼0.6635.77 ▲1.35
Add New Post /wp-admin/post-new.php1,578 ▲2523.56 ▲0.46689.84 ▲14.4960.60 ▲6.42
Media Library /wp-admin/upload.php1,433 ▲334.22 ▼0.0097.02 ▼5.9345.67 ▼0.79
Questions /wp-admin/edit.php?post_type=question1,1552.0036.8632.90
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=question1,4852.1528.6534.87
Add New Question /wp-admin/post-new.php?post_type=question2,4717.72171.8662.63
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=question1,3522.1726.4829.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • category_children
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quizz/quizz.php:58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: question, quiz

quizz/quizz.php Passed 13 tests

The entry point to "Quizz" version 1.02 is a PHP file that has certain tags in its header comment area
69 characters long description:
A plugin that helps you create a simple sequential quiz on WordPress.

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
Good job! No executable or dangerous file extensions detected178 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26831178

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin