Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Parse error in wp-content/plugins/product-question-and-answer/q_and_a.php+420
syntax error, unexpected '}', expecting end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.84ms] Passed 4 tests
Analyzing server-side resources used by Product Question and Answer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.87 ▲2.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.55 ▲0.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.35 ▼5.83 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.14 ▼8.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.36 ▲1.88 |
Server storage [IO: ▲3.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Product Question and Answer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.12 | 1.73 ▼0.10 | 44.19 ▼0.67 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.11 | 88.83 ▲1.04 | 41.57 ▼0.48 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.04 | 34.88 ▼4.78 | 36.94 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 18.26 ▲0.07 | 597.75 ▼61.95 | 75.03 ▲6.72 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.06 | 95.42 ▼15.16 | 42.40 ▼3.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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 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 take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/product-question-and-answer/answer.php on line 88
- > PHP Parse error
syntax error, unexpected '}', expecting end of file in wp-content/plugins/product-question-and-answer/q_and_a.php on line 420
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/product-question-and-answer/tabs_qa.php on line 200
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #5 is missing in product-question-and-answer/assets to your readme.txt
product-question-and-answer/q_and_a.php 85% from 13 tests
The main PHP script in "Product Question and Answer" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("product-question-and-answer.php" instead of "q_and_a.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin17,056 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,026 |
JavaScript | 2 | 409 | 66 | 4,059 |
CSS | 2 | 1,451 | 9 | 3,183 |
PHP | 5 | 180 | 46 | 788 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/dis-approve-icon.png | 17.28KB | 6.70KB | ▼ 61.23% |
image/approve-icon.png | 9.51KB | 3.18KB | ▼ 66.61% |