Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.90ms] Passed 4 tests
Analyzing server-side resources used by Ask Me Anything (Anonymously)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 42.37 ▼0.51 |
Dashboard /wp-admin | 3.42 ▲0.08 | 52.50 ▼13.74 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.29 ▼0.79 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.04 ▼12.57 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.02 ▲2.06 |
Ask Me Anything /wp-admin/options-general.php?page=ask-me-anything-shortcode-generator | 3.32 | 34.51 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Ask Me Anything (Anonymously): an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.14 ▼0.64 | 1.83 ▲0.23 | 44.29 ▲2.86 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.04 | 97.71 ▲5.71 | 44.23 ▲3.20 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.01 | 35.38 ▲0.65 | 33.24 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 22.96 ▲0.02 | 654.77 ▼5.05 | 55.59 ▲5.13 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.01 | 99.81 ▼1.45 | 41.22 ▼2.77 |
Ask Me Anything /wp-admin/options-general.php?page=ask-me-anything-shortcode-generator | 1,369 | 1.90 | 23.68 | 35.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 7× PHP files trigger server errors when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/ask-me-anything-anonymously/inc/csstidy/data-wp.inc.php on line 34
- > PHP Notice
Undefined index: unit_values in wp-content/plugins/ask-me-anything-anonymously/inc/csstidy/data-wp.inc.php on line 16
- > PHP Notice
Undefined variable: data in wp-content/plugins/ask-me-anything-anonymously/inc/csstidy/data-wp.inc.php on line 3
- > PHP Notice
Undefined index: multiple_properties in wp-content/plugins/ask-me-anything-anonymously/inc/csstidy/data-wp.inc.php on line 34
- > PHP Notice
Undefined index: color_values in wp-content/plugins/ask-me-anything-anonymously/inc/csstidy/data-wp.inc.php on line 24
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/ask-me-anything-anonymously/inc/csstidy/data-wp.inc.php on line 16
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/ask-me-anything-anonymously/inc/csstidy/data-wp.inc.php on line 24
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: ask questions anonymously, shortcode, sarahah, qanda, ask me anything...
ask-me-anything-anonymously/ask-me-anything-anonymously.php Passed 13 tests
"Ask Me Anything (Anonymously)" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
Let your visitors as you questions anonymously and list all questions in a neat list.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin9,595 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 490 | 455 | 5,960 |
PHP | 7 | 441 | 1,150 | 3,196 |
CSS | 4 | 69 | 22 | 373 |
Markdown | 1 | 20 | 0 | 66 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 210.00 |
▷ Minimum class complexity | 72.00 |
▷ Maximum class complexity | 286.00 |
Average method complexity | 9.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 1 | 1.32% |
▷ Public methods | 76 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
There were not PNG files found in your plugin