78% wp-faq-builder

Code Review | WP Faq Builder

WordPress plugin WP Faq Builder scored 78% from 54 tests.

About plugin

  • Plugin page: wp-faq-builder
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 12, 2018
  • Latest release: Aug 12, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: techjewel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.39ms] Passed 4 tests

An overview of server-side resources used by WP Faq Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.80 ▼0.29
Dashboard /wp-admin3.33 ▲0.0351.59 ▼1.71
Posts /wp-admin/edit.php3.38 ▲0.0343.51 ▼2.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.79 ▼11.80
Media Library /wp-admin/upload.php3.25 ▲0.0334.30 ▼1.27

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Faq Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲14413.27 ▼1.001.66 ▲0.1244.06 ▲6.46
Dashboard /wp-admin2,289 ▲1015.89 ▼0.01109.78 ▼1.4742.63 ▲2.60
Posts /wp-admin/edit.php2,168 ▲762.02 ▲0.0133.40 ▼7.1934.55 ▼1.60
Add New Post /wp-admin/post-new.php1,552 ▲1923.37 ▲0.28655.45 ▲12.5554.89 ▲2.57
Media Library /wp-admin/upload.php1,470 ▲854.31 ▲0.1297.80 ▼6.1544.71 ▼0.31

Uninstaller [IO: ▲0.00MB] [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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-faq-builder/views/admin_view.php
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-faq-builder/views/render_view.php:85
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 12
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 14
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 13
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 15
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/wp-faq-builder/views/render_view.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires php: Version format is invalid
You can look at the official readme.txt

wp-faq-builder/wp-faq-builder.php 85% from 13 tests

This is the main PHP file of "WP Faq Builder" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path folder does not exist ("/languages")

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
There were no executable files found in this plugin496 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP1310624456
SVG11030
JSON1006
CSS2002
JavaScript2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1760.71%
▷ Public methods2485.71%
▷ Protected methods00.00%
▷ Private methods414.29%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/fluent-icon.png8.98KB5.26KB▼ 41.43%
public/img/support.png3.11KB3.19KB0.00%
public/img/bug.png2.95KB3.09KB0.00%