79% wb-faq

Code Review | WB FAQ

WordPress plugin WB FAQ scored79%from 54 tests.

About plugin

  • Plugin page: wb-faq
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Jun 29, 2016
  • Latest release: Jun 29, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wpbrim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /498 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼12.06ms] Passed 4 tests

Analyzing server-side resources used by WB FAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.11 ▼10.48
Dashboard /wp-admin3.36 ▲0.0144.12 ▼28.37
Posts /wp-admin/edit.php3.41 ▲0.0543.66 ▼2.58
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.78 ▼6.82
Media Library /wp-admin/upload.php3.28 ▲0.0533.67 ▲3.35
All FAQs /wp-admin/edit.php?post_type=wb-faq3.3237.06
Categories /wp-admin/edit-tags.php?taxonomy=wb_category&post_type=wb-faq3.2734.56
Add New FAQ /wp-admin/post-new.php?post_type=wb-faq3.4246.20
Help & Upgrade /wp-admin/edit.php?post_type=wb-faq&page=wb_faq_menu_help3.2529.44

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WB FAQ
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.25 ▼0.032.18 ▲0.3848.41 ▲4.23
Dashboard /wp-admin2,232 ▲525.51 ▼0.1585.92 ▼4.1538.68 ▼1.93
Posts /wp-admin/edit.php2,137 ▲372.09 ▲0.1333.83 ▼3.1334.79 ▼0.33
Add New Post /wp-admin/post-new.php1,560 ▲3123.26 ▲0.30614.94 ▼69.0254.40 ▼9.82
Media Library /wp-admin/upload.php1,431 ▲284.20 ▼0.0398.12 ▼0.3647.54 ▲5.43
All FAQs /wp-admin/edit.php?post_type=wb-faq1,1071.9732.4929.64
Categories /wp-admin/edit-tags.php?taxonomy=wb_category&post_type=wb-faq1,3112.1225.4032.01
Add New FAQ /wp-admin/post-new.php?post_type=wb-faq2,3217.71166.8164.62
Help & Upgrade /wp-admin/edit.php?post_type=wb-faq&page=wb_faq_menu_help8632.0022.1727.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wb-faq/lib/wb-faq-help-upgrade.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wb-faq/wb-faq.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wb-faq/lib/wb-faq-cpt.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wb-faq/public/wb-faq-view.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: advanced faq, accordion, faqs, faqs list, grouped faqs...

wb-faq/wb-faq.php Passed 13 tests

Analyzing the main PHP file in "WB FAQ" version 1.0
46 characters long description:
A quick and easy way to add FAQs to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin254 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53929149
CSS2149105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 are no PNG files in this plugin