Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.95ms] Passed 4 tests
Analyzing server-side resources used by WP Q&A Quiz
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.31 ▲4.20 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.69 ▼0.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.64 ▼0.55 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.00 ▲4.32 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.86 ▲0.76 |
Settings /wp-admin/edit.php?post_type=wp_qa_quiz&page=wp-qa-quiz-options | 3.22 | 31.25 |
WP QA Quiz /wp-admin/edit.php?post_type=wp_qa_quiz | 3.30 | 32.53 |
Add New /wp-admin/post-new.php?post_type=wp_qa_quiz | 3.33 | 47.37 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Q&A Quiz
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.26 ▼1.10 | 4.68 ▲2.79 | 39.42 ▼3.30 |
Dashboard /wp-admin | 2,237 ▲49 | 4.85 ▼0.02 | 107.40 ▼8.09 | 39.50 ▼9.28 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.01 ▼0.02 | 39.38 ▼1.77 | 36.81 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 23.38 ▲0.46 | 653.26 ▼27.39 | 59.56 ▲1.97 |
Media Library /wp-admin/upload.php | 1,416 ▲34 | 4.27 ▲0.06 | 93.42 ▼6.36 | 44.09 ▲2.08 |
Settings /wp-admin/edit.php?post_type=wp_qa_quiz&page=wp-qa-quiz-options | 813 | 2.06 | 24.01 | 24.96 |
WP QA Quiz /wp-admin/edit.php?post_type=wp_qa_quiz | 1,084 | 2.01 | 31.99 | 29.35 |
Add New /wp-admin/post-new.php?post_type=wp_qa_quiz | 1,843 | 3.60 | 70.19 | 35.66 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: post in wp-content/plugins/wp-qa-quiz/front/templates/quiz-standart.php on line 15
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wp-qa-quiz/front/templates/quiz-standart.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-qa-quiz/front/templates/quiz-standart.php on line 2
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/wp-qa-quiz/front/templates/quiz-standart.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_permalink() in wp-content/plugins/wp-qa-quiz/front/templates/quiz-standart.php:22
- > PHP Notice
Trying to get property 'post_title' of non-object in wp-content/plugins/wp-qa-quiz/front/templates/quiz-standart.php on line 15
- > PHP Notice
Undefined variable: post in wp-content/plugins/wp-qa-quiz/front/templates/quiz-standart.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-qa-quiz/wp-qa-quiz.php:18
- > PHP Notice
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: question and answers, quizes, test, quizzes, questionaires...
wp-qa-quiz/wp-qa-quiz.php Passed 13 tests
The entry point to "WP Q&A Quiz" version 1.2 is a PHP file that has certain tags in its header comment area
69 characters long description:
Let you create question - answer quiz and insert them with shortcode.
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
There were no executable files found in this plugin1,321 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 113 | 7 | 568 |
CSS | 2 | 33 | 1 | 432 |
PHP | 4 | 60 | 27 | 244 |
HTML | 5 | 2 | 0 | 77 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/images/next.png | 1.25KB | 0.25KB | ▼ 79.73% |
admin/img/noimage.png | 2.38KB | 1.60KB | ▼ 33.01% |
front/images/facebook-icon.png | 1.29KB | 0.58KB | ▼ 54.94% |
front/images/repeat.png | 1.33KB | 0.73KB | ▼ 45.10% |