72% chidoo-quizmaster

Code Review | Chidoo Quizmaster

WordPress plugin Chidoo Quizmaster scored 72% from 54 tests.

About plugin

  • Plugin page: chidoo-quizmaster
  • Plugin version: 0.0.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jan 10, 2021
  • Latest release: Aug 26, 2022
  • Number of updates: 19
  • Update frequency: every 31.3 days
  • Top authors: ndoormann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 676 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.31ms] Passed 4 tests

A check of server-side resources used by Chidoo Quizmaster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1337.01 ▼1.24
Dashboard /wp-admin3.43 ▲0.1246.32 ▲0.48
Posts /wp-admin/edit.php3.54 ▲0.1851.31 ▲2.36
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.67 ▼2.86
Media Library /wp-admin/upload.php3.35 ▲0.1237.68 ▲4.21
Quizmaster /wp-admin/admin.php?page=chiqm_apps3.5033.04
Configure Quizmaster App /wp-admin/options.php?page=chiqm_configure_app3.3232.07
How to create custom apps /wp-admin/admin.php?page=chiqm_custom_apps3.3232.62

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
chiqm_applist
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Chidoo Quizmaster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲20813.64 ▼0.594.92 ▲3.2738.98 ▼1.11
Dashboard /wp-admin2,229 ▲445.85 ▲0.92103.16 ▼1.5674.52 ▲34.72
Posts /wp-admin/edit.php2,121 ▲292.01 ▼0.0134.40 ▼5.4231.30 ▼4.08
Add New Post /wp-admin/post-new.php1,698 ▲18422.12 ▲4.50739.94 ▲67.4649.36 ▼1.47
Media Library /wp-admin/upload.php1,426 ▲414.19 ▼0.01108.14 ▲11.5646.24 ▲2.89
Quizmaster /wp-admin/admin.php?page=chiqm_apps8662.0724.8126.75
Configure Quizmaster App /wp-admin/options.php?page=chiqm_configure_app8002.0324.3823.74
How to create custom apps /wp-admin/admin.php?page=chiqm_custom_apps8062.0325.5025.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/chidoo-quizmaster/public/partials/chiqm-public-display.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/chidoo-quizmaster/includes/chiqm-definitions.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/chidoo-quizmaster/includes/class-chiqm-app.php:3
    • > PHP Warning
      require_once(CHIQM_PLUGIN_PATH/includes/class-chiqm-app.php): failed to open stream: No such file or directory in wp-content/plugins/chidoo-quizmaster/apps/chiqm-memory/chiqm-memory.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/chidoo-quizmaster/apps/chiqm-memory/chiqm-memory-dynamic-translation.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/chidoo-quizmaster/admin/partials/chiqm-admin-options-configure-app.php:6
    • > PHP Fatal error
      require_once(): Failed opening required 'CHIQM_PLUGIN_PATH/includes/class-chiqm-app.php' (include_path='.:/usr/share/php') in wp-content/plugins/chidoo-quizmaster/apps/chiqm-memory/chiqm-memory.php on line 3
    • > PHP Warning
      Use of undefined constant CHIQM_PLUGIN_PATH - assumed 'CHIQM_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/chidoo-quizmaster/apps/chiqm-memory/chiqm-memory.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/chidoo-quizmaster/admin/partials/chiqm-admin-custom-apps.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/chidoo-quizmaster/admin/partials/chiqm-admin-noptions.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chiqm_custom_apps
    • > Network (severe)
    wp-content/plugins/chidoo-quizmaster/admin/images/chiqm-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: chidoo, learning, music notation, game, quiz...

chidoo-quizmaster/chidoo-quizmaster.php 85% from 13 tests

The entry point to "Chidoo Quizmaster" version 0.0.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "5.2")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,885 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP22333228833
JavaScript616125576
CSS2944395
PO File1313881

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.18
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.01
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods73
▷ Static methods22.74%
▷ Public methods6893.15%
▷ Protected methods00.00%
▷ Private methods56.85%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin