Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.17ms] Passed 4 tests
A check of server-side resources used by WP Question & Answer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 35.15 ▼3.60 |
Dashboard /wp-admin | 3.46 ▲0.11 | 45.80 ▼15.11 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.44 ▲4.26 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 92.05 ▼11.94 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.18 ▲1.97 |
Сategories /wp-admin/edit-tags.php?taxonomy=question_cat&post_type=question | 3.37 | 33.71 |
Questions /wp-admin/edit.php?post_type=question | 3.42 | 32.99 |
Add question /wp-admin/post-new.php?post_type=question | 3.50 | 47.88 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
wp_question_answer |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Question & Answer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.25 ▼1.13 | 3.03 ▲1.02 | 39.44 ▼3.63 |
Dashboard /wp-admin | 2,240 ▲52 | 5.85 ▲0.98 | 99.63 ▼19.78 | 38.22 ▼9.59 |
Posts /wp-admin/edit.php | 2,120 ▲49 | 2.00 ▼0.03 | 39.74 ▲2.96 | 34.31 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,554 ▲35 | 23.14 ▼0.08 | 642.71 ▼19.36 | 58.34 ▲8.31 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.16 ▼0.01 | 94.63 ▼1.89 | 43.01 ▼2.22 |
Сategories /wp-admin/edit-tags.php?taxonomy=question_cat&post_type=question | 1,296 | 2.14 | 28.64 | 32.79 |
Questions /wp-admin/edit.php?post_type=question | 1,101 | 1.93 | 32.66 | 28.22 |
Add question /wp-admin/post-new.php?post_type=question | 2,268 | 7.65 | 171.20 | 60.46 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Categories), #2 (Questions), #3 (Questions - links), #4 (Questions in admin)
wp-question-answer/question-answer.php 92% from 13 tests
The main PHP script in "WP Question & Answer" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-question-answer.php" instead of "question-answer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin954 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 298 | 332 | 812 |
JSON | 3 | 1 | 0 | 72 |
Markdown | 1 | 53 | 0 | 70 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 6 | 8.96% |
▷ Public methods | 61 | 91.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.96% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.35MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 161.93KB | 60.89KB | ▼ 62.40% |
screenshot-3.png | 63.01KB | 27.78KB | ▼ 55.91% |
screenshot-4.png | 31.33KB | 16.51KB | ▼ 47.31% |
screenshot-1.png | 100.65KB | 52.03KB | ▼ 48.31% |