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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.70ms] Passed 4 tests
A check of server-side resources used by Questionnaire
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.60 ▼3.69 |
Dashboard /wp-admin | 3.38 ▲0.07 | 43.50 ▼5.04 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 45.85 ▼3.60 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.70 ▼26.48 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.65 ▲0.32 |
Questionnaire /wp-admin/edit.php?post_type=questionnaire | 3.34 | 34.66 |
Add New /wp-admin/post-new.php?post_type=questionnaire | 3.47 | 54.80 |
Server storage [IO: ▲13.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 431 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_qstnr_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Questionnaire
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 13.26 ▼1.41 | 4.80 ▲3.14 | 46.66 ▲6.20 |
Dashboard /wp-admin | 2,227 ▲42 | 5.85 ▼0.03 | 103.28 ▲3.67 | 41.01 ▼6.65 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.98 ▼0.05 | 39.49 ▼1.20 | 36.76 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,565 ▲23 | 18.16 ▼0.08 | 617.32 ▲9.87 | 56.39 ▲12.41 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.24 ▲0.04 | 94.38 ▼2.25 | 41.25 ▼5.93 |
Questionnaire /wp-admin/edit.php?post_type=questionnaire | 1,131 | 2.00 | 31.55 | 31.21 |
Add New /wp-admin/post-new.php?post_type=questionnaire | 3,483 | 8.12 | 188.33 | 94.68 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_qstnr_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/questionnaire/widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/questionnaire/widget.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=questionnaire
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: this._addClass is not a function" "TypeError: this._addClass is not a function\n at e.\u003Ccomputed>.\u003Ccomputed>._create (/wp-includes/js/jquery/ui/sortable.min.js?ver=1.13.2:9:912)\n at e.\u003Ccomputed>.\u003Ccomputed>._create (/wp-content/plugins/questionnaire/jquery-ui.min.js?ver=6.3.1:6:7841)\n at e.\u003Ccomputed>.\u003Ccomputed>._createWidget (/wp-content/plugins/questionnaire/jquery-ui.min.js?ver=6.3.1:6:9910)\n at new e.\u003Ccomputed>.\u003Ccomputed> (/wp-content/plugins/questionnaire/jquery-ui.min.js?ver=6.3.1:6:7399)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/questionnaire/jquery-ui.min.js?ver=6.3.1:6:9182)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at e.fn.\u003Ccomputed> [as sortable] (/wp-content/plugins/questionnaire/jquery-ui.min.js?ver=6.3.1:6:9092)\n at Object.init (/wp-admin/js/postbox.min.js?ver=6.3.1:2:3686)\n at Object.add_postbox_toggles (/wp-admin/js/postbox.min.js?ver=6.3.1:2:2725)" undefined
- > GET request to /wp-admin/post-new.php?post_type=questionnaire
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: this._addClass is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: questionnaire, vote, survey, plugin
questionnaire/questionnaire.php Passed 13 tests
The principal PHP file in "Questionnaire" v. 2.8.0 is loaded by WordPress automatically on each request
42 characters long description:
Application for collecting questionnaires.
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
Everything looks great! No dangerous files found in this plugin146,262 lines of code in 297 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 85 | 9,988 | 21,279 | 91,253 |
HTML | 122 | 2,159 | 40 | 26,641 |
JSON | 6 | 0 | 0 | 19,944 |
CSS | 7 | 86 | 187 | 3,690 |
PHP | 17 | 307 | 604 | 1,847 |
Markdown | 3 | 426 | 0 | 1,320 |
SVG | 56 | 37 | 0 | 1,057 |
PO File | 1 | 191 | 194 | 510 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 106 | |
▷ Named functions | 105 | 99.06% |
▷ Anonymous functions | 1 | 0.94% |
Constants | 19 | |
▷ Global constants | 19 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
93 PNG files occupy 1.39MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
amcharts/amcharts/patterns/white/pattern12.png | 0.16KB | 0.10KB | ▼ 35.00% |
amcharts/amcharts/patterns/black/pattern20.png | 0.16KB | 0.10KB | ▼ 35.40% |
amcharts/amcharts/patterns/black/pattern4.png | 0.15KB | 0.10KB | ▼ 35.06% |
amcharts/amcharts/plugins/responsive/examples/images/bicycle.png | 1.15KB | 0.50KB | ▼ 56.50% |
amcharts/amcharts/patterns/white/pattern13.png | 0.15KB | 0.10KB | ▼ 35.06% |