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.13MB] [CPU: ▼4.90ms] Passed 4 tests
Analyzing server-side resources used by Simple Learn Japanese Quiz
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.83 ▼3.93 |
Dashboard /wp-admin | 3.43 ▲0.13 | 50.24 ▲0.05 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 53.31 ▼2.03 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 89.52 ▼13.67 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.58 ▲2.31 |
Simple Learn Japanese Quiz Settings /wp-admin/options-general.php?page=simplelearnjapanesequiz-settings | 3.32 | 36.23 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple Learn Japanese Quiz: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.97 ▼0.40 | 4.99 ▲3.17 | 43.64 ▲1.64 |
Dashboard /wp-admin | 2,211 ▲22 | 4.83 ▼0.13 | 98.49 ▼10.00 | 38.54 ▼5.90 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.99 ▲0.02 | 32.86 ▼6.23 | 37.09 ▲2.96 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.21 ▼0.26 | 618.84 ▼52.65 | 57.69 ▲10.44 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.20 ▲0.02 | 97.14 ▼5.48 | 43.33 ▼5.81 |
Simple Learn Japanese Quiz Settings /wp-admin/options-general.php?page=simplelearnjapanesequiz-settings | 860 | 2.19 | 25.13 | 31.40 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-learn-japanese-quiz/public/partials/tourhand-jap-quiz-public-display.php
- > /wp-content/plugins/simple-learn-japanese-quiz/admin/partials/tourhand-jap-quiz-admin-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-learn-japanese-quiz/public/class-tourhand-jap-quiz-public.php:185
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-learn-japanese-quiz/admin/class-tourhand-jap-quiz-admin.php:324
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: hotel, travel, tour, language, japanese
simple-learn-japanese-quiz/tourhand-jap-quiz.php 85% from 13 tests
This is the main PHP file of "Simple Learn Japanese Quiz" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-learn-japanese-quiz.php" instead of "tourhand-jap-quiz.php")
Code Analysis Passed 3 tests
File types Passed 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
There were no executable files found in this plugin656 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 221 | 518 | 611 |
CSS | 2 | 5 | 8 | 39 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 4.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin