Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼4.22ms] Passed 4 tests
Server-side resources used by WP-FAQ
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.84 ▲2.03 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.94 ▼0.96 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.75 ▼0.60 |
Add New Post /wp-admin/post-new.php | 5.34 ▼0.54 | 79.31 ▼17.35 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.52 ▲4.01 |
FAQ /wp-admin/edit.php?post_type=faq | 3.32 | 37.08 |
FAQ Groups /wp-admin/edit-tags.php?taxonomy=faq_groups&post_type=faq | 3.27 | 39.38 |
New entry /wp-admin/post-new.php?post_type=faq | 3.40 | 50.02 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was 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 |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP-FAQ
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲79 | 13.58 ▲0.30 | 4.38 ▲0.08 | 43.12 ▲5.82 |
Dashboard /wp-admin | 2,249 ▲43 | 4.86 ▼1.00 | 98.77 ▲1.54 | 79.43 ▲39.14 |
Posts /wp-admin/edit.php | 2,153 ▲64 | 2.08 ▲0.08 | 40.01 ▼0.30 | 35.16 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,706 ▲164 | 22.20 ▲3.93 | 760.76 ▲162.46 | 30.58 ▼23.28 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.25 ▲0.08 | 112.99 ▲12.90 | 46.26 ▲2.16 |
FAQ /wp-admin/edit.php?post_type=faq | 1,116 | 2.02 | 35.97 | 33.38 |
FAQ Groups /wp-admin/edit-tags.php?taxonomy=faq_groups&post_type=faq | 1,319 | 2.22 | 27.87 | 30.80 |
New entry /wp-admin/post-new.php?post_type=faq | 2,334 | 7.87 | 170.77 | 143.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-faq-by-wpdonehere/index.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-faq-by-wpdonehere/index.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-faq-by-wpdonehere/classes/class-faq.php:267
- > PHP Fatal error
Uncaught Error: Class 'HTMLBuilder' not found in wp-content/plugins/wp-faq-by-wpdonehere/classes/class-shortcode.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-faq-by-wpdonehere/classes/class-tinymce.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-faq-by-wpdonehere/classes/class-screen_meta.php:50
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=faq
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-faq-by-wpdonehere/js/backend.js?ver=6.3.1:3:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=faq
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
wp-faq-by-wpdonehere/index.php 92% from 13 tests
Analyzing the main PHP file in "WP-FAQ" version 1.01
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-faq-by-wpdonehere.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin793 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 76 | 92 | 374 |
CSS | 3 | 78 | 34 | 245 |
JavaScript | 4 | 24 | 2 | 174 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 7.94KB | 2.79KB | ▼ 64.82% |
images/menu-icon.png | 3.82KB | 1.46KB | ▼ 61.72% |
images/styles/picker-buttons.png | 7.40KB | 3.84KB | ▼ 48.10% |
images/styles/purple.png | 9.58KB | 4.24KB | ▼ 55.79% |
images/styles/white.png | 8.37KB | 3.69KB | ▼ 55.89% |