67% faq-manager-with-structured-data

Code Review | FAQ Manager For Divi, Gutenberg Block & Shortcode

WordPress plugin FAQ Manager For Divi, Gutenberg Block & Shortcode scored67%from 54 tests.

About plugin

  • Plugin page: faq-manager-with-...
  • Plugin version: 5.7.0
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2020
  • Latest release: Nov 29, 2023
  • Number of updates: 27
  • Update frequency: every 52.1 days
  • Top authors: wpt00ls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,706 total downloads

Benchmarks

Plugin footprint 64% 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: ▲5.46MB] [CPU: ▲20.62ms] 50% from 4 tests

Server-side resources used by FAQ Manager For Divi, Gutenberg Block & Shortcode
Please have a look at the following items
  • RAM: Total memory usage must be kept under 10MB (currently 10.13MB on /wp-admin/post-new.php?post_type=wpt-faq)
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.46MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.24 ▲5.7765.35 ▲21.82
Dashboard /wp-admin9.26 ▲5.9174.95 ▲12.44
Posts /wp-admin/edit.php9.26 ▲5.9082.18 ▲39.60
Add New Post /wp-admin/post-new.php10.14 ▲4.26113.79 ▲8.60
Media Library /wp-admin/upload.php9.26 ▲6.0376.69 ▲40.00
Add New /wp-admin/post-new.php?post_type=wpt-faq10.13114.41
All FAQs /wp-admin/edit.php?post_type=wpt-faq9.2667.15
FAQ Manager /wp-admin/options-general.php?page=faq-manager-with-structured-data-page9.2662.16
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius9.2659.07

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 259 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
fs_accounts
fs_debug_mode
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
fs_active_plugins

Browser metrics Passed 4 tests

A check of browser resources used by FAQ Manager For Divi, Gutenberg Block & Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13714.66 ▼0.071.50 ▼0.0827.28 ▼16.07
Dashboard /wp-admin2,236 ▲585.69 ▲0.0392.96 ▼20.2675.94 ▲30.73
Posts /wp-admin/edit.php2,160 ▲631.95 ▲0.0140.09 ▲1.7438.38 ▲4.66
Add New Post /wp-admin/post-new.php6,401 ▲4,87527.91 ▲4.75941.23 ▲346.7240.14 ▼9.59
Media Library /wp-admin/upload.php1,447 ▲474.20 ▼0.0199.11 ▼5.5879.24 ▲37.06
Add New /wp-admin/post-new.php?post_type=wpt-faq6,14126.39875.8930.76
All FAQs /wp-admin/edit.php?post_type=wpt-faq1,1211.9632.6432.40
FAQ Manager /wp-admin/options-general.php?page=faq-manager-with-structured-data-page1,0191.6827.3462.46
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,1181.6526.0530.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/faq-manager-with-structured-data/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • fs_active_plugins
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • fs_debug_mode
    • widget_recent-posts
    • fs_accounts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/faq-manager-with-structured-data/resources/views/admin_menu/faq_manager_admin_menu_page.php
    • > /wp-content/plugins/faq-manager-with-structured-data/resources/views/shortcodes/accordion.php
  • 20× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'WPTools\\Psr\\Container\\ContainerInterface' not found in wp-content/plugins/faq-manager-with-structured-data/vendor/wpt00ls/pimple/src/Pimple/Psr11/Container.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faq-manager-with-structured-data/post-types/wpt-faq.php:56
    • > PHP Fatal error
      Trait 'WPT\\FaqManager\\Blocks\\Styles\\DefaultComponentFunctions' not found in wp-content/plugins/faq-manager-with-structured-data/includes/classes/Blocks/Styles/TabbedBackgroundColor.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WPTools\\Pimple\\Container' not found in wp-content/plugins/faq-manager-with-structured-data/includes/classes/Loader.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/faq-manager-with-structured-data/includes/modules/FaqModule/FaqModule.php:5
    • > PHP Fatal error
      Trait 'WPT\\FaqManager\\Blocks\\Styles\\DefaultComponentFunctions' not found in wp-content/plugins/faq-manager-with-structured-data/includes/classes/Blocks/Styles/Typography.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'WPTools\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/faq-manager-with-structured-data/vendor/wpt00ls/container/src/NotFoundExceptionInterface.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'WPTools\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/faq-manager-with-structured-data/vendor/wpt00ls/pimple/src/Pimple/Exception/ExpectedInvokableException.php:36
    • > PHP Fatal error
      Uncaught Error: Interface 'WPTools\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/faq-manager-with-structured-data/vendor/wpt00ls/pimple/src/Pimple/Exception/FrozenServiceException.php:36
    • > PHP Fatal error
      Trait 'WPT\\FaqManager\\Blocks\\Styles\\DefaultComponentFunctions' not found in wp-content/plugins/faq-manager-with-structured-data/includes/classes/Blocks/Styles/BorderRadius.php on line 7

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

faq-manager-with-structured-data/faq-manager-with-structured-data.php 92% from 13 tests

The main PHP script in "FAQ Manager For Divi, Gutenberg Block & Shortcode" version 5.7.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin37,030 lines of code in 204 files:
LanguageFilesBlank linesComment linesLines of code
PHP1718,58418,38136,431
JavaScript94763259
JSON300186
reStructuredText19613997
CSS1851133
XML12016
Markdown1508

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity52.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces16
Interfaces5
Traits1
Classes85
▷ Abstract classes22.35%
▷ Concrete classes8397.65%
▷ Final classes22.41%
Methods1,442
▷ Static methods22015.26%
▷ Public methods1,03972.05%
▷ Protected methods171.18%
▷ Private methods38626.77%
Functions118
▷ Named functions10488.14%
▷ Anonymous functions1411.86%
Constants145
▷ Global constants9867.59%
▷ Class constants4732.41%
▷ Public constants47100.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
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
images/faq-icon.png1.70KB1.79KB0.00%
freemius/assets/img/faq-manager-with-structured-data.png6.21KB4.30KB▼ 30.84%