Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.69MB] [CPU: ▼301.50ms] Passed 4 tests
Analyzing server-side resources used by 10WebFAQ
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 43.41 ▲22.98 |
Dashboard /wp-admin | 2.96 ▼0.09 | 30.09 ▼14.81 |
Posts /wp-admin/edit.php | 2.96 ▼0.14 | 30.93 ▼10.08 |
Add New Post /wp-admin/post-new.php | 2.96 ▼2.47 | 33.93 ▼1,173.55 |
Media Library /wp-admin/upload.php | 2.96 ▼0.05 | 29.62 ▼7.55 |
Translations /wp-admin/edit.php?post_type=faq_wd&page=faq_wd_lang_option | 2.96 | 38.75 |
Settings /wp-admin/edit.php?post_type=faq_wd&page=faq_wd_settings | 2.96 | 34.08 |
Uninstall /wp-admin/edit.php?post_type=faq_wd&page=uninstall_faq_wd | 2.96 | 28.36 |
Statistics /wp-admin/edit.php?post_type=faq_wd&page=faqwd_stats | 2.96 | 32.63 |
Themes /wp-admin/edit.php?post_type=faq_wd&page=theme | 2.96 | 29.90 |
Server storage [IO: ▲3.51MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 123 new files
Database: no new tables, 7 new options
New WordPress options |
---|
faqwd_do_activation_set_up |
faqwd_settings_general |
faqwd_scripts_key |
faqwd_admin_notice |
faqwd_version |
faqwd_do_activation_set_up_redirect |
faqwd_upgrade_has_run |
Browser metrics Passed 4 tests
10WebFAQ: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,924 ▲318 | 17.62 ▲2.17 | 8.56 ▼0.18 | 47.97 ▼0.55 |
Dashboard /wp-admin | 3,172 ▲322 | 8.02 ▲2.15 | 155.10 ▲25.36 | 128.96 ▲23.82 |
Posts /wp-admin/edit.php | 2,976 ▲270 | 4.32 ▲1.63 | 78.28 ▲10.18 | 110.28 ▲19.88 |
Add New Post /wp-admin/post-new.php | 1,518 ▼335 | 18.24 ▼0.60 | 339.40 ▼21.40 | 112.52 ▼0.80 |
Media Library /wp-admin/upload.php | 1,823 ▲51 | 4.80 ▼0.19 | 119.73 ▼31.94 | 136.00 ▲18.44 |
Translations /wp-admin/edit.php?post_type=faq_wd&page=faq_wd_lang_option | 2,011 | 3.38 | 71.00 | 99.47 |
Settings /wp-admin/edit.php?post_type=faq_wd&page=faq_wd_settings | 1,559 | 3.41 | 75.88 | 88.05 |
Uninstall /wp-admin/edit.php?post_type=faq_wd&page=uninstall_faq_wd | 1,419 | 3.62 | 72.63 | 70.42 |
Statistics /wp-admin/edit.php?post_type=faq_wd&page=faqwd_stats | 1,281 | 3.37 | 69.58 | 61.71 |
Themes /wp-admin/edit.php?post_type=faq_wd&page=theme | 1,286 | 3.38 | 71.02 | 79.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5586
wp_get_default_privacy_policy_content is deprecated since version 5.7.0! Use wp_add_privacy_policy_content() instead.
- The uninstall procedure has failed, leaving 7 options in the database
- faqwd_settings_general
- faqwd_admin_notice
- faqwd_do_activation_set_up_redirect
- faqwd_version
- faqwd_scripts_key
- faqwd_upgrade_has_run
- faqwd_do_activation_set_up
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=faq_wd&page=theme
- > User deprecated in wp-includes/functions.php+5586
wp_get_default_privacy_policy_content is deprecated since version 5.7.0! Use wp_add_privacy_policy_content() instead.
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/faq-wd/views/admin/faq_wd_stats.php
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: taxonomy in wp-content/plugins/faq-wd/views/admin/category_meta_box.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/faq-wd/views/faq_wd_content.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/faq-wd/wd/templates/display_subscribe.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/faq-wd/views/admin/category_meta_box.php:6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/faq-wd/wd/templates/display_deactivation_popup.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/faq-wd/wd/templates/display_deactivation_popup.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/faq-wd/views/admin/faqwd-shortcode-iframe.php:8
- > PHP Notice
Trying to get property 'post_date' of non-object in wp-content/plugins/faq-wd/views/faq_wd_content.php on line 3
- > PHP Notice
Undefined variable: tax in wp-content/plugins/faq-wd/views/admin/category_meta_box.php on line 5
- > PHP Notice
Undefined variable: wd_options in wp-content/plugins/faq-wd/wd/templates/display_deactivation_popup.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
No plugin tags provided
faq-wd/faq_wd.php 85% from 13 tests
"10WebFAQ" version 1.0.41's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 255 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("faq-wd.php" instead of "faq_wd.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
Success! There were no dangerous files found in this plugin8,031 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 625 | 350 | 4,858 |
CSS | 11 | 182 | 22 | 1,823 |
JavaScript | 9 | 175 | 58 | 1,206 |
Markdown | 1 | 20 | 0 | 93 |
SVG | 4 | 0 | 0 | 51 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 2 | 10.00% |
Methods | 193 | |
▷ Static methods | 11 | 5.70% |
▷ Public methods | 162 | 83.94% |
▷ Protected methods | 2 | 1.04% |
▷ Private methods | 29 | 15.03% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 18 | 78.26% |
▷ Class constants | 5 | 21.74% |
▷ Public constants | 5 | 100.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
48 PNG files occupy 0.71MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wd/assets/img/wds_main_plugin.png | 5.66KB | 3.74KB | ▼ 34.04% |
wd/assets/img/wdps_main_plugin.png | 5.98KB | 2.72KB | ▼ 54.47% |
images/new_post_icon.png | 1.99KB | 1.25KB | ▼ 37.04% |
wd/assets/css/img/plugins_header_bg.png | 41.88KB | 28.43KB | ▼ 32.10% |
wd/assets/img/how_it_works.png | 331.66KB | 187.47KB | ▼ 43.48% |