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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.82 ▼1.90 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.93 ▲1.20 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 49.24 ▲4.15 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 84.14 ▼0.92 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 35.17 ▲2.04 |
Quiz Importer /wp-admin/options-general.php?page=wp-quiz-importer | 3.29 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.96 ▼0.39 | 7.92 ▲5.91 | 45.75 ▲5.33 |
Dashboard /wp-admin | 2,214 ▲26 | 5.83 ▲0.02 | 99.03 ▼2.60 | 39.73 ▲1.50 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.02 | 35.65 ▼0.31 | 33.70 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.43 ▲0.00 | 680.21 ▲5.54 | 64.71 ▲10.62 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.20 ▼0.04 | 93.45 ▼5.71 | 40.36 ▼6.41 |
Quiz Importer /wp-admin/options-general.php?page=wp-quiz-importer | 939 | 2.19 | 22.53 | 29.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
- > PHP Fatal error
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:
- Screenshots: A description for screenshot #1 is required in wp-quiz-importer/assets to your 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
- .dotm - Word Macro-Enabled Template in Microsoft Word
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 377 | 1,107 | 1,140 |
XSD | 1 | 0 | 0 | 37 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 1 | 8 | 3 |
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 code | 0.38 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 12 | 13.64% |
▷ Public methods | 52 | 59.09% |
▷ Protected methods | 4 | 4.55% |
▷ Private methods | 32 | 36.36% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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