68% wp-quiz-importer

Code Review | Quiz Importer Plugin

WordPress plugin Quiz Importer Plugin scored68%from 54 tests.

About plugin

  • Plugin page: wp-quiz-importer
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2017
  • Latest release: Aug 18, 2017
  • Number of updates: 13
  • Update frequency: every 0.5 days
  • Top authors: tdevip (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /9,946 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.11ms] Passed 4 tests

Server-side resources used by Quiz Importer Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.82 ▼1.90
Dashboard /wp-admin3.39 ▲0.0949.93 ▲1.20
Posts /wp-admin/edit.php3.50 ▲0.1549.24 ▲4.15
Add New Post /wp-admin/post-new.php5.99 ▲0.1184.14 ▼0.92
Media Library /wp-admin/upload.php3.31 ▲0.0935.17 ▲2.04
Quiz Importer /wp-admin/options-general.php?page=wp-quiz-importer3.2933.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Quiz Importer Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.96 ▼0.397.92 ▲5.9145.75 ▲5.33
Dashboard /wp-admin2,214 ▲265.83 ▲0.0299.03 ▼2.6039.73 ▲1.50
Posts /wp-admin/edit.php2,097 ▲82.00 ▼0.0235.65 ▼0.3133.70 ▼1.10
Add New Post /wp-admin/post-new.php1,522 ▼1123.43 ▲0.00680.21 ▲5.5464.71 ▲10.62
Media Library /wp-admin/upload.php1,393 ▲54.20 ▼0.0493.45 ▼5.7140.36 ▼6.41
Quiz Importer /wp-admin/options-general.php?page=wp-quiz-importer9392.1922.5329.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-quiz-importer/admin/partials/wp-quiz-importer-noadmin-display.php
    • > /wp-content/plugins/wp-quiz-importer/admin/helpers/index.php
    • > /wp-content/plugins/wp-quiz-importer/public/partials/wp-quiz-importer-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Settings_Message' not found in wp-content/plugins/wp-quiz-importer/vendor/messenger/class-message.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-quiz-importer/admin/partials/wp-quiz-importer-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

wp-quiz-importer/wp-quiz-importer.php Passed 13 tests

This is the main PHP file of "Quiz Importer Plugin" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
Imports quiz questions from a MS Word template file.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .dotm - Word Macro-Enabled Template in Microsoft Word
      • wp-content/plugins/wp-quiz-importer/quiz-template.dotm
1,186 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP223771,1071,140
XSD10037
JavaScript24546
CSS2183

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.80
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods88
▷ Static methods1213.64%
▷ Public methods5259.09%
▷ Protected methods44.55%
▷ Private methods3236.36%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected