84% bbwp-faq

Code Review | BBWP FAQ

WordPress plugin BBWP FAQ scored 84% from 54 tests.

About plugin

  • Plugin page: bbwp-faq
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Mar 21, 2014
  • Number of updates: 20
  • Update frequency: every 0.2 days
  • Top authors: Nasgor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,144 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by BBWP FAQ
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.85 ▲7.07
Dashboard /wp-admin3.35 ▲0.0452.40 ▼0.19
Posts /wp-admin/edit.php3.40 ▲0.0452.13 ▲1.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.51 ▼4.07
Media Library /wp-admin/upload.php3.27 ▲0.0437.43 ▲1.56
All FAQs /wp-admin/edit.php?post_type=faq3.3242.32
Add new /wp-admin/post-new.php?post_type=faq3.3954.02

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for BBWP FAQ
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲3313.18 ▼0.361.87 ▲0.0946.53 ▲5.22
Dashboard /wp-admin2,220 ▲114.94 ▲0.09107.82 ▼8.3865.17 ▲28.14
Posts /wp-admin/edit.php2,118 ▲292.00 ▼0.0038.61 ▲2.2434.96 ▲1.85
Add New Post /wp-admin/post-new.php1,546 ▲418.33 ▲0.00667.36 ▲63.7965.31 ▲7.12
Media Library /wp-admin/upload.php1,417 ▲294.22 ▲0.0297.05 ▼3.0771.30 ▲23.75
All FAQs /wp-admin/edit.php?post_type=faq1,0882.0335.6534.81
Add new /wp-admin/post-new.php?post_type=faq2,1957.58176.54138.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbwp-faq/languages/include-translations.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbwp-faq/functions/bbwp-faq-custom-posts.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbwp-faq/style/include-styles.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bbwp-faq/functions/bbwp-faq-shortcode.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bbwp-faq/bbwp-faq.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbwp-faq/js/include-js.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Please describe screenshot #3 in bbwp-faq/assets to your readme.txt
Please take inspiration from this readme.txt

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

The entry point to "BBWP FAQ" version 1.1 is a PHP file that has certain tags in its header comment area
60 characters long description:
Preguntas frecuentes (FAQ) mediante Custom Post de Wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected266 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP61927163
PO File2367692
CSS12011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/faq.png0.59KB0.78KB0.00%