Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.67ms] Passed 4 tests
An overview of server-side resources used by Simple Point Quiz For Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.92 ▲4.54 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.85 ▲0.87 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.27 ▼2.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.95 ▼6.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.80 ▲0.76 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Point Quiz For Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.63 ▼0.66 | 4.23 ▲2.11 | 43.17 ▼8.78 |
Dashboard /wp-admin | 2,206 ▲21 | 4.88 ▼1.00 | 113.66 ▲9.46 | 42.12 ▼0.67 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.07 | 35.66 ▲1.60 | 31.28 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.22 ▼4.92 | 634.71 ▼36.02 | 49.66 ▼6.73 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.19 ▼0.06 | 94.36 ▼12.41 | 42.89 ▼4.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-point-quiz-for-woocommerce/admin/partials/simple-point-quiz-for-woocommerce-admin-quiz-edit.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-point-quiz-for-woocommerce/admin/partials/simple-point-quiz-for-woocommerce-admin-question-sort-answer.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simple-point-quiz-for-woocommerce/admin/partials/simple-point-quiz-for-woocommerce-admin-quiz-linking.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-point-quiz-for-woocommerce/admin/partials/simple-point-quiz-for-woocommerce-admin-quiz-add.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-point-quiz-for-woocommerce/admin/partials/simple-point-quiz-for-woocommerce-admin-question-answers.php:17
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Contributors: Plugin contributors field is missing
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in simple-point-quiz-for-woocommerce/assets to your readme.txt
simple-point-quiz-for-woocommerce/simple-point-quiz-for-woocommerce.php 92% from 13 tests
The main PHP file in "Simple Point Quiz For Woocommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,373 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 191 | 671 | 801 |
CSS | 3 | 56 | 11 | 297 |
JavaScript | 4 | 37 | 81 | 172 |
PO File | 1 | 97 | 165 | 103 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 17.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 45 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 31.37KB | 12.18KB | ▼ 61.16% |
images/icon-sm.png | 51.66KB | 1.34KB | ▼ 97.41% |