84% faustwp

Code Review | Faust.js

WordPress plugin Faust.js scored84%from 54 tests.

About plugin

  • Plugin page: faustwp
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: Nov 8, 2023
  • Number of updates: 27
  • Update frequency: every 27.7 days
  • Top authors: wpengine (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active /24,599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼9.20ms] Passed 4 tests

An overview of server-side resources used by Faust.js
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0735.66 ▼8.74
Dashboard /wp-admin3.36 ▲0.0143.47 ▼19.91
Posts /wp-admin/edit.php3.41 ▲0.0643.27 ▼7.04
Add New Post /wp-admin/post-new.php5.95 ▲0.0791.38 ▼1.10
Media Library /wp-admin/upload.php3.28 ▲0.0534.19 ▲0.69
Faust /wp-admin/options-general.php?page=faustwp-settings3.3131.42

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
faustwp_settings
theysaidso_admin_options
widget_theysaidso_widget
faustwp_current_version
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Faust.js
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3213.97 ▼0.311.58 ▼0.5069.25 ▲23.36
Dashboard /wp-admin2,199 ▲195.58 ▼0.0882.40 ▼15.7136.66 ▼5.80
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0737.67 ▲0.5835.67 ▼1.44
Add New Post /wp-admin/post-new.php1,537 ▲1123.29 ▲0.24663.12 ▼26.9659.28 ▲1.88
Media Library /wp-admin/upload.php1,404 ▲14.16 ▼0.0597.55 ▼8.9041.14 ▼5.26
Faust /wp-admin/options-general.php?page=faustwp-settings1,0631.8527.0953.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • faustwp_current_version
    • db_upgraded
    • widget_recent-posts
    • faustwp_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\FaustWP\\Detect_Conflicts\\add_action() in wp-content/plugins/faustwp/includes/detect-conflicts/callbacks.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/faustwp/includes/settings/views/headless-settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPE\\FaustWP\\Updates\\add_action() in wp-content/plugins/faustwp/includes/updates/upgrade-database.php:10

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: composable-architecture, faustjs, headless, faust, decoupled

faustwp/faustwp.php 92% from 13 tests

The primary PHP file in "Faust.js" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,297 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP244231,1551,834
CSS14421200
Markdown11160148
JavaScript2182099
SVG20016

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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
Namespaces14
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%
Functions118
▷ Named functions11395.76%
▷ Anonymous functions54.24%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin