94% quiztiger

Code Review | QuizTiger

WordPress plugin QuizTiger scored 94% from 54 tests.

About plugin

  • Plugin page: quiztiger
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 5.8.1
  • First release: Jul 2, 2016
  • Latest release: Jul 4, 2016
  • Number of updates: 5
  • Update frequency: every 53.4 days
  • Top authors: anderspetersson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 425 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼144.56ms] Passed 4 tests

Server-side resources used by QuizTiger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1227.69 ▼0.19
Dashboard /wp-admin3.06 ▲0.0047.24 ▼0.76
Posts /wp-admin/edit.php3.12 ▲0.0048.72 ▲0.70
Add New Post /wp-admin/post-new.php5.42 ▼0.0293.84 ▼578.00
Media Library /wp-admin/upload.php3.01 ▲0.0036.97 ▲6.87

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

QuizTiger: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,756 ▲16015.86 ▲0.348.84 ▼0.6048.83 ▼6.74
Dashboard /wp-admin2,976 ▲425.86 ▼0.07137.70 ▼14.82107.81 ▼12.60
Posts /wp-admin/edit.php2,771 ▲352.70 ▲0.0067.55 ▼2.5294.62 ▼1.18
Add New Post /wp-admin/post-new.php1,966 ▲28322.28 ▲3.54406.87 ▲25.41114.33 ▼6.19
Media Library /wp-admin/upload.php1,838 ▲284.98 ▼0.04163.12 ▼15.31109.89 ▼18.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/quiztiger/quiztiger.php

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: shortcode, quiz

quiztiger/quiztiger.php Passed 13 tests

The principal PHP file in "QuizTiger" v. 1.0 is loaded by WordPress automatically on each request
48 characters long description:
Add a quiz from QuizTiger.com using a shortcode.

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
No dangerous file extensions were detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1598

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin