90% faq-schema-block-to-accordion

Code Review | Turn Yoast SEO FAQ Block to Accordion

WordPress plugin Turn Yoast SEO FAQ Block to Accordion scored90%from 54 tests.

About plugin

  • Plugin page: faq-schema-block-...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Apr 1, 2023
  • Number of updates: 17
  • Update frequency: every 50.4 days
  • Top authors: yasir129 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /8,392 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.90ms] Passed 4 tests

A check of server-side resources used by Turn Yoast SEO FAQ Block to Accordion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.29 ▼3.70
Dashboard /wp-admin3.31 ▲0.0143.31 ▼3.82
Posts /wp-admin/edit.php3.36 ▲0.0045.80 ▼4.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.09 ▼11.43
Media Library /wp-admin/upload.php3.23 ▲0.0036.74 ▲5.66

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Turn Yoast SEO FAQ Block to Accordion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.60 ▼0.805.18 ▲3.6739.95 ▼1.54
Dashboard /wp-admin2,206 ▲184.84 ▼0.10109.69 ▲5.3143.63 ▼8.66
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.59 ▼2.8335.54 ▼1.32
Add New Post /wp-admin/post-new.php1,541 ▲918.24 ▼4.54653.23 ▲23.0156.32 ▼2.47
Media Library /wp-admin/upload.php1,391 ▼04.12 ▼0.05105.70 ▲7.4646.06 ▲0.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
7 plugin tags: schema, readability, seo, faq, accordion...

faq-schema-block-to-accordion/faq-schema-block-to-accordion.php Passed 13 tests

Analyzing the main PHP file in "Turn Yoast SEO FAQ Block to Accordion" version 1.0.5
60 characters long description:
A plugin to turn Yoast SEO FAQ blocks into accordion easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected93 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS25051
JavaScript25029
PHP231113

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected