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.64MB] [CPU: ▼18.32ms] Passed 4 tests
Analyzing server-side resources used by Question answer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.86 ▼1.16 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.65 ▼7.37 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.73 ▼5.03 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.69 | 39.95 ▼59.73 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 43.96 ▲3.38 |
Question /wp-admin/edit.php?post_type=mideal_faq | 3.32 | 36.84 |
Settings /wp-admin/edit.php?post_type=mideal_faq&page=settings | 3.33 | 39.07 |
Add question /wp-admin/post-new.php?post_type=mideal_faq | 3.13 | 35.14 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Question answer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 13.91 ▼0.50 | 9.77 ▲7.91 | 38.27 ▼8.36 |
Dashboard /wp-admin | 2,234 ▲57 | 5.73 ▲0.05 | 100.09 ▼0.72 | 42.65 ▼2.96 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.08 ▲0.06 | 39.04 ▼0.18 | 40.29 ▲3.85 |
Add New Post /wp-admin/post-new.php | 1,560 ▲26 | 23.27 ▲0.08 | 737.17 ▲66.21 | 56.77 ▲6.13 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.21 ▼0.04 | 133.05 ▲23.81 | 55.99 ▲6.59 |
Question /wp-admin/edit.php?post_type=mideal_faq | 1,128 | 2.00 | 32.66 | 26.71 |
Settings /wp-admin/edit.php?post_type=mideal_faq&page=settings | 1,371 | 2.54 | 41.81 | 26.75 |
Add question /wp-admin/post-new.php?post_type=mideal_faq | 2,548 | 8.99 | 204.81 | 74.99 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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)
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=mideal_faq
- > Notice in wp-content/plugins/question-answer-faq/includes/admin/admin.php+94
Undefined index: mideal_faq_noncename
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/question-answer-faq/templates/admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: faq, question, answer
question-answer-faq/question-answer-faq.php Passed 13 tests
This is the main PHP file of "Question answer" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
101 characters long description:
Question answer, ajax, bootstrap plugin with gravatar avatar and Google reCaptcha 2. Looks like chat.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,797 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 99 | 111 | 1,342 |
PHP | 8 | 160 | 90 | 722 |
CSS | 7 | 49 | 19 | 622 |
PO File | 1 | 53 | 68 | 111 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/bootstrap-colorpicker-master/img/bootstrap-colorpicker/alpha.png | 0.48KB | 1.68KB | 0.00% |
assets/bootstrap-colorpicker-master/img/bootstrap-colorpicker/saturation.png | 4.05KB | 5.13KB | 0.00% |
img/avatar-default.png | 2.26KB | 2.30KB | 0.00% |
assets/bootstrap-colorpicker-master/img/bootstrap-colorpicker/alpha-horizontal.png | 0.54KB | 1.62KB | 0.00% |
assets/bootstrap-colorpicker-master/img/bootstrap-colorpicker/hue-horizontal.png | 0.47KB | 0.47KB | 0.00% |