84% faq-block

Code Review | FAQ Block

WordPress plugin FAQ Block scored84%from 54 tests.

About plugin

  • Plugin page: faq-block
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2018
  • Latest release: Oct 15, 2023
  • Number of updates: 22
  • Update frequency: every 87.4 days
  • Top authors: TigrouMeow (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /10,442 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.44ms] Passed 4 tests

Analyzing server-side resources used by FAQ Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.98 ▼1.35
Dashboard /wp-admin3.32 ▼0.0344.53 ▼13.75
Posts /wp-admin/edit.php3.37 ▲0.0145.84 ▼4.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.49 ▼10.41
Media Library /wp-admin/upload.php3.24 ▲0.0136.50 ▲1.87

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for FAQ Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.57 ▲0.0139.37 ▲0.65
Dashboard /wp-admin2,195 ▲175.62 ▼0.0590.86 ▼16.0540.02 ▼4.18
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0338.32 ▼6.7838.31 ▲0.98
Add New Post /wp-admin/post-new.php6,376 ▲4,85022.35 ▼1.07845.67 ▲184.1052.22 ▼3.10
Media Library /wp-admin/upload.php1,394 ▼34.15 ▲0.0094.77 ▼3.4440.73 ▼3.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/faq-block/faq-block.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2 in faq-block/assets to your readme.txt
You can look at the official readme.txt

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

The entry point to "FAQ Block" version 1.0.8 is a PHP file that has certain tags in its header comment area
75 characters long description:
Very simple and clean Gutenberg Block for FAQ (Frequently Asked Questions).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,085 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON2004,781
JavaScript3114123
CSS414076
Sass214663
PHP1121942

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/meowapps.png3.54KB3.59KB0.00%