10% quizzlestick

Code Review | Quizzlestick

WordPress plugin Quizzlestick scored10%from 54 tests.

About plugin

  • Plugin page: quizzlestick
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2015
  • Latest release: Jan 2, 2019
  • Number of updates: 30
  • Update frequency: every 45.2 days
  • Top authors: AndyWalmsley (83.33%)Mim McNeela (13.33%)evgeniinasyrov (10%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,533 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function icit_core was called incorrectly. icit_core should be included at the top of your theme or plug-in file and should load before the init action. Please see Debugging in WordPress for more information. (This message was added in version icit_core:1.0.)

Server metrics [RAM: ▲0.57MB] [CPU: ▲1.07ms] Passed 4 tests

A check of server-side resources used by Quizzlestick
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6044.46 ▲3.50
Dashboard /wp-admin3.90 ▲0.6053.59 ▲5.82
Posts /wp-admin/edit.php3.96 ▲0.6055.33 ▲5.19
Add New Post /wp-admin/post-new.php6.45 ▲0.5687.65 ▼4.66
Media Library /wp-admin/upload.php3.76 ▲0.5340.58 ▲0.25
Quizzes /wp-admin/edit.php?post_type=quiz3.8741.15
Add New /wp-admin/post-new.php?post_type=quiz4.1554.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quizzlestick
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲19013.63 ▼1.028.32 ▲6.5536.61 ▼9.83
Dashboard /wp-admin2,240 ▲494.85 ▼1.05112.34 ▲13.5340.70 ▼2.61
Posts /wp-admin/edit.php2,126 ▲342.16 ▲0.1638.56 ▲1.1335.78 ▼1.32
Add New Post /wp-admin/post-new.php1,553 ▲1518.49 ▼4.80654.15 ▼11.3951.10 ▼9.32
Media Library /wp-admin/upload.php1,425 ▲434.28 ▲0.0996.34 ▼2.9743.01 ▲0.88
Quizzes /wp-admin/edit.php?post_type=quiz1,0991.9831.1029.00
Add New /wp-admin/post-new.php?post_type=quiz3,67012.17261.42121.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quizzlestick/core/icit-notices.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quizzlestick/core/icit-helpers.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quizzlestick/inc/wp-preview-meta.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/quizzlestick/quizzlestick.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quizzlestick/core/icit-helpers.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'icit_fields' not found in wp-content/plugins/quizzlestick/core/icit-options.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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: plugins, quiz

quizzlestick/quizzlestick.php Passed 13 tests

The primary PHP file in "Quizzlestick" version 1.0.1 is used by WordPress to initiate all plugin functionality
74 characters long description:
Quizzlestick wrapper plugin to make creating quizzes within WordPress easy

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,761 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP121,3211,6243,789
JavaScript103513441,167
CSS41112494
PO File14849153
HTML1140146
JSON10010
SVG2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity34.87
▷ Minimum class complexity1.00
▷ Maximum class complexity141.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes213.33%
▷ Concrete classes1386.67%
▷ Final classes00.00%
Methods175
▷ Static methods4324.57%
▷ Public methods17197.71%
▷ Protected methods00.00%
▷ Private methods42.29%
Functions37
▷ Named functions3183.78%
▷ Anonymous functions616.22%
Constants25
▷ Global constants416.00%
▷ Class constants2184.00%
▷ Public constants21100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin