78% fusion-faqs-schema

Code Review | Google faqs schema

WordPress plugin Google faqs schema scored78%from 54 tests.

About plugin

  • Plugin page: fusion-faqs-schema
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.5-5.8.9
  • WordPress version: 6.3.1
  • First release: May 20, 2021
  • Latest release: Nov 29, 2021
  • Number of updates: 7
  • Update frequency: every 32.4 days
  • Top authors: galileotechmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /444 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.06MB] [CPU: ▼3.67ms] Passed 4 tests

Analyzing server-side resources used by Google faqs schema
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.75 ▼1.41
Dashboard /wp-admin3.36 ▲0.0648.95 ▼5.77
Posts /wp-admin/edit.php3.42 ▲0.0650.96 ▲3.19
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.17 ▼10.68
Media Library /wp-admin/upload.php3.29 ▲0.0640.59 ▲4.47
FAQs Schema Settings /wp-admin/admin.php?page=ffws_settings_page3.2637.19

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

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

Browser metrics Passed 4 tests

Google faqs schema: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.35 ▲0.002.01 ▲0.2343.95 ▲3.88
Dashboard /wp-admin2,201 ▲245.63 ▼0.0393.00 ▲7.5440.61 ▼1.48
Posts /wp-admin/edit.php2,109 ▲122.00 ▲0.0440.74 ▲2.5636.78 ▲2.77
Add New Post /wp-admin/post-new.php1,543 ▲1525.31 ▲2.30674.43 ▼16.9266.08 ▲9.72
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.01104.59 ▼5.0144.12 ▼2.08
FAQs Schema Settings /wp-admin/admin.php?page=ffws_settings_page8931.8124.2325.42

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/fusion-faqs-schema/preview/ffws_content_preview.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-faqs-schema/functions.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fusion-faqs-schema/google-faqs-schema.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fusion-faqs-schema/options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
6 plugin tags: avada, googleschema, avada extension, faqs, avada faqs...

fusion-faqs-schema/google-faqs-schema.php 92% from 13 tests

"Google faqs schema" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("fusion-faqs-schema.php" instead of "google-faqs-schema.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected370 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43713320
JavaScript18450

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions12
▷ Named functions866.67%
▷ Anonymous functions433.33%
Constants1
▷ Global constants1100.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
No PNG files were detected