78% hd-quiz-save-results-light

Code Review | HD Quiz - Save Results Light

WordPress plugin HD Quiz - Save Results Light scored78%from 54 tests.

About plugin

  • Plugin page: hd-quiz-save-resu...
  • Plugin version: 0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 19, 2019
  • Latest release: May 4, 2023
  • Number of updates: 10
  • Update frequency: every 124.1 days
  • Top authors: Harmonic_Design (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /9,844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.88ms] Passed 4 tests

Analyzing server-side resources used by HD Quiz - Save Results Light
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.97 ▼3.14
Dashboard /wp-admin3.33 ▲0.0343.43 ▼6.20
Posts /wp-admin/edit.php3.38 ▲0.0244.45 ▲0.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.25 ▲6.74
Media Library /wp-admin/upload.php3.26 ▲0.0236.86 ▲1.07
Results /wp-admin/admin.php?page=hdq_results3.2430.76

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for HD Quiz - Save Results Light
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.19 ▼1.461.80 ▼0.4740.27 ▼9.19
Dashboard /wp-admin2,206 ▲184.84 ▼0.02108.96 ▼8.3941.09 ▼2.55
Posts /wp-admin/edit.php2,089 ▲182.04 ▲0.0439.22 ▲1.6534.37 ▼1.20
Add New Post /wp-admin/post-new.php1,519 ▼1423.32 ▲0.14608.62 ▼107.0857.11 ▼2.21
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0097.36 ▼9.4941.31 ▼3.68
Results /wp-admin/admin.php?page=hdq_results9441.9538.3138.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/hd-quiz-save-results-light/index.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hd-quiz-save-results-light/includes/functions.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/hd-quiz-save-results-light/includes/results.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

hd-quiz-save-results-light/index.php 92% from 13 tests

This is the main PHP file of "HD Quiz - Save Results Light" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hd-quiz-save-results-light.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin901 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1893546
PHP34333261
JavaScript1161494

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin