84% float-faq

Code Review | Float FAQ

WordPress plugin Float FAQ scored 84% from 54 tests.

About plugin

  • Plugin page: float-faq
  • Plugin version: 2.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2022
  • Latest release: Apr 3, 2023
  • Number of updates: 11
  • Update frequency: every 35.3 days
  • Top authors: dmitrylitvinov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 940 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.87ms] Passed 4 tests

Server-side resources used by Float FAQ
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0951.57 ▼11.23
Dashboard /wp-admin3.37 ▲0.0751.46 ▼3.53
Posts /wp-admin/edit.php3.43 ▲0.0772.21 ▲21.71
Add New Post /wp-admin/post-new.php6.01 ▲0.12105.11 ▲4.74
Media Library /wp-admin/upload.php3.30 ▲0.0737.55 ▲2.54
All FAQs /wp-admin/edit.php?post_type=float_faq3.3445.09
Float FAQ settings /wp-admin/options-general.php?page=float-faq-plugin-options3.2631.71
Add new FAQ /wp-admin/post-new.php?post_type=float_faq5.9987.02

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Float FAQ
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,986 ▲19713.60 ▲0.366.63 ▲4.5140.04 ▼14.05
Dashboard /wp-admin2,237 ▲314.84 ▼0.99107.89 ▲13.3543.40 ▲2.73
Posts /wp-admin/edit.php2,123 ▲342.04 ▲0.0541.34 ▲4.9534.95 ▼0.16
Add New Post /wp-admin/post-new.php1,560 ▲1723.21 ▲4.97688.59 ▲74.0149.62 ▼2.08
Media Library /wp-admin/upload.php1,419 ▲314.30 ▲0.0893.76 ▼11.2141.09 ▼0.58
All FAQs /wp-admin/edit.php?post_type=float_faq1,0812.0033.3228.31
Float FAQ settings /wp-admin/options-general.php?page=float-faq-plugin-options8462.0228.4328.08
Add new FAQ /wp-admin/post-new.php?post_type=float_faq6,42522.83932.7430.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/float-faq/index.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: float, float faq, faq

float-faq/float-faq.php 92% from 13 tests

This is the main PHP file of "Float FAQ" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 221 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin471 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS1110190
PHP44450183
SVG50152
JavaScript116246

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin