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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.33ms] Passed 4 tests
An overview of server-side resources used by HD Quiz - Limit Attempts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.40 ▲3.18 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.36 ▼4.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.44 ▼5.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.66 ▼7.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.20 ▼0.26 |
Limit Attempts /wp-admin/admin.php?page=hdq_limit | 3.24 | 35.78 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
HD Quiz - Limit Attempts: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.17 | 1.66 ▲0.19 | 43.88 ▲3.98 |
Dashboard /wp-admin | 2,195 ▲17 | 5.54 ▼0.14 | 81.32 ▼25.94 | 38.43 ▼7.16 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▲0.06 | 36.32 ▼3.75 | 34.82 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,537 ▲1 | 18.57 ▲0.42 | 590.18 ▼24.01 | 86.33 ▲24.08 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.18 ▼0.06 | 95.62 ▼5.59 | 39.76 ▼4.24 |
Limit Attempts /wp-admin/admin.php?page=hdq_limit | 1,694 | 6.74 | 142.72 | 113.24 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=hdq_limit
- > Warning in wp-content/plugins/hd-quiz-limit-attempts/includes/limit.php+14
Use of undefined constant HDQ_PLUGIN_VERSION - assumed 'HDQ_PLUGIN_VERSION' (this will throw an Error in a future version of PHP)
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hd-quiz-limit-attempts/index.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/hd-quiz-limit-attempts/includes/limit.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hd-quiz-limit-attempts/includes/functions.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
hd-quiz-limit-attempts/index.php 92% from 13 tests
"HD Quiz - Limit Attempts" version 0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("hd-quiz-limit-attempts.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,037 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 161 | 53 | 1,072 |
JavaScript | 2 | 23 | 7 | 567 |
CSS | 1 | 74 | 9 | 398 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 52.50 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 34.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 65.31% |
Functions | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/web-logo.png | 7.63KB | 2.65KB | ▼ 65.33% |