Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.18ms] Passed 4 tests
A check of server-side resources used by Math Quiz
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.92 ▼0.25 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.79 ▼5.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.92 ▼2.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.59 ▼5.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.99 ▼3.37 |
Math Quiz /wp-admin/options-general.php?page=math-quiz-menu | 3.20 | 29.33 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_math_quiz_problems |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
math-quiz-setting |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Math Quiz
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲112 | 13.58 ▼0.79 | 5.02 ▲2.91 | 43.17 ▼1.17 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼0.06 | 99.53 ▼17.12 | 39.52 ▼8.66 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▼0.01 | 33.41 ▼2.74 | 32.72 ▼7.52 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.80 ▲0.30 | 668.86 ▲11.58 | 57.35 ▼3.22 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.19 ▲0.01 | 97.20 ▼15.22 | 42.97 ▼6.77 |
Math Quiz /wp-admin/options-general.php?page=math-quiz-menu | 962 | 2.02 | 21.65 | 29.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_math_quiz_problems
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- math-quiz-setting
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/math-quiz/math-quiz.php
- > /wp-content/plugins/math-quiz/admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid url: ""
math-quiz/math-quiz.php Passed 13 tests
The main file in "Math Quiz" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
Generating random math problem for comment form.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin775 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 92 | 71 | 463 |
PO File | 3 | 135 | 128 | 312 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.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
1 PNG file occupies 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/background.png | 178.06KB | 73.12KB | ▼ 58.94% |