62% faq-wd

Code Review | 10WebFAQ

WordPress plugin 10WebFAQ scored 62% from 53 tests.

About plugin

  • Plugin page: faq-wd
  • Plugin version: 1.0.41
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.1
  • WordPress version: 5.8.1
  • First release: Aug 14, 2015
  • Latest release: Oct 16, 2020
  • Number of updates: 76
  • Update frequency: every 24.9 days
  • Top authors: webdorado (100%)

Code review

53 tests

User reviews

28 reviews

Install metrics

1,000+ active / 74,203 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1943.41 ▲22.98
Dashboard /wp-admin2.96 ▼0.0930.09 ▼14.81
Posts /wp-admin/edit.php2.96 ▼0.1430.93 ▼10.08
Add New Post /wp-admin/post-new.php2.96 ▼2.4733.93 ▼1,173.55
Media Library /wp-admin/upload.php2.96 ▼0.0529.62 ▼7.55
Translations /wp-admin/edit.php?post_type=faq_wd&page=faq_wd_lang_option2.9638.75
Settings /wp-admin/edit.php?post_type=faq_wd&page=faq_wd_settings2.9634.08
Uninstall /wp-admin/edit.php?post_type=faq_wd&page=uninstall_faq_wd2.9628.36
Statistics /wp-admin/edit.php?post_type=faq_wd&page=faqwd_stats2.9632.63
Themes /wp-admin/edit.php?post_type=faq_wd&page=theme2.9629.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,924 ▲31817.62 ▲2.178.56 ▼0.1847.97 ▼0.55
Dashboard /wp-admin3,172 ▲3228.02 ▲2.15155.10 ▲25.36128.96 ▲23.82
Posts /wp-admin/edit.php2,976 ▲2704.32 ▲1.6378.28 ▲10.18110.28 ▲19.88
Add New Post /wp-admin/post-new.php1,518 ▼33518.24 ▼0.60339.40 ▼21.40112.52 ▼0.80
Media Library /wp-admin/upload.php1,823 ▲514.80 ▼0.19119.73 ▼31.94136.00 ▲18.44
Translations /wp-admin/edit.php?post_type=faq_wd&page=faq_wd_lang_option2,0113.3871.0099.47
Settings /wp-admin/edit.php?post_type=faq_wd&page=faq_wd_settings1,5593.4175.8888.05
Uninstall /wp-admin/edit.php?post_type=faq_wd&page=uninstall_faq_wd1,4193.6272.6370.42
Statistics /wp-admin/edit.php?post_type=faq_wd&page=faqwd_stats1,2813.3769.5861.71
Themes /wp-admin/edit.php?post_type=faq_wd&page=theme1,2863.3871.0279.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP326253504,858
CSS11182221,823
JavaScript9175581,206
Markdown120093
SVG40051

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 code0.40
Average class complexity28.50
▷ Minimum class complexity6.00
▷ Maximum class complexity93.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes210.00%
Methods193
▷ Static methods115.70%
▷ Public methods16283.94%
▷ Protected methods21.04%
▷ Private methods2915.03%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants1878.26%
▷ Class constants521.74%
▷ Public constants5100.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
FileSize - originalSize - compressedSavings
wd/assets/img/wds_main_plugin.png5.66KB3.74KB▼ 34.04%
wd/assets/img/wdps_main_plugin.png5.98KB2.72KB▼ 54.47%
images/new_post_icon.png1.99KB1.25KB▼ 37.04%
wd/assets/css/img/plugins_header_bg.png41.88KB28.43KB▼ 32.10%
wd/assets/img/how_it_works.png331.66KB187.47KB▼ 43.48%