Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.23MB] [CPU: ▼40.83ms] Passed 4 tests
An overview of server-side resources used by Simple Q&A
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 15.25 ▼28.21 |
Dashboard /wp-admin | 2.78 ▼0.52 | 15.97 ▼30.19 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 16.12 ▼31.52 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 15.86 ▼73.39 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 17.66 ▼15.00 |
Q&A Settings /wp-admin/options-general.php?page=qa-plugin | 2.78 | 15.16 |
New Q&A /wp-admin/post-new.php?post_type=qa | 2.78 | 16.89 |
Q&A /wp-admin/edit.php?post_type=qa | 2.78 | 17.21 |
Q&A Tags /wp-admin/edit-tags.php?taxonomy=qatag&post_type=qa | 2.78 | 16.50 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Simple Q&A: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲149 | 13.25 ▼1.12 | 4.43 ▲2.78 | 39.50 ▼14.18 |
Dashboard /wp-admin | 2,262 ▲83 | 4.87 ▼0.95 | 101.28 ▲0.86 | 40.11 ▼2.07 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.03 ▼0.01 | 33.57 ▼7.83 | 33.18 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,562 ▲29 | 22.93 ▼0.24 | 663.93 ▲27.68 | 55.47 ▲5.73 |
Media Library /wp-admin/upload.php | 1,426 ▲44 | 4.25 ▲0.06 | 94.71 ▼3.76 | 41.36 ▼2.87 |
Q&A Settings /wp-admin/options-general.php?page=qa-plugin | 1,520 | 2.54 | 57.47 | 32.05 |
New Q&A /wp-admin/post-new.php?post_type=qa | 2,505 | 7.73 | 174.11 | 65.36 |
Q&A /wp-admin/edit.php?post_type=qa | 1,116 | 1.93 | 32.17 | 31.70 |
Q&A Tags /wp-admin/edit-tags.php?taxonomy=qatag&post_type=qa | 1,269 | 2.14 | 25.54 | 31.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/simple-qa/qa-plugin.php+64
A non-numeric value encountered
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=qatag&post_type=qa
- > Warning in wp-content/plugins/simple-qa/qa-plugin.php+64
A non-numeric value encountered
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
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/simple-qa/ReCaptcha/RequestMethod/SocketPost.php:37
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/simple-qa/ReCaptcha/RequestMethod/Post.php:35
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/simple-qa/ReCaptcha/RequestMethod/CurlPost.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-qa/qa-plugin.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
6 plugin tags: qa, answers, question, question and answer, answer...
simple-qa/qa-plugin.php 92% from 13 tests
Analyzing the main PHP file in "Simple Q&A" version 2.1
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-qa.php" instead of "qa-plugin.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
Good job! No executable or dangerous file extensions detected1,460 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 126 | 490 | 1,139 |
CSS | 2 | 53 | 0 | 283 |
JavaScript | 1 | 2 | 0 | 38 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 3.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 27 | 90.00% |
▷ Anonymous functions | 3 | 10.00% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected