67% joli-faq-seo

Code Review | Joli FAQ SEO - WordPress FAQ Plugin

WordPress plugin Joli FAQ SEO - WordPress FAQ Plugin scored67%from 54 tests.

About plugin

  • Plugin page: joli-faq-seo
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Jul 7, 2023
  • Number of updates: 18
  • Update frequency: every 52.7 days
  • Top authors: wpjoli (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /2,389 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.88MB] [CPU: ▲2.41ms] Passed 4 tests

Server-side resources used by Joli FAQ SEO - WordPress FAQ Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.8342.69 ▲4.98
Dashboard /wp-admin4.21 ▲0.9048.06 ▲1.03
Posts /wp-admin/edit.php4.26 ▲0.9052.25 ▲9.56
Add New Post /wp-admin/post-new.php6.94 ▲1.0688.97 ▼5.95
Media Library /wp-admin/upload.php4.13 ▲0.9046.57 ▲9.65
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.3440.31

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 239 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-comments
fs_debug_mode
db_upgraded
fs_active_plugins
joli_faq_seo_rating_time
widget_recent-posts
widget_theysaidso_widget
joli_faq_seo_settings
joli_faq_seo_gopro_time
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Joli FAQ SEO - WordPress FAQ Plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,030 ▲24414.35 ▲0.101.33 ▼0.4332.87 ▼9.62
Dashboard /wp-admin2,433 ▲2625.68 ▲0.1386.36 ▼6.0339.11 ▼1.28
Posts /wp-admin/edit.php2,302 ▲2022.01 ▲0.0040.67 ▲3.7738.93 ▲2.72
Add New Post /wp-admin/post-new.php6,403 ▲4,87522.77 ▼0.06914.28 ▲255.9939.91 ▼11.19
Media Library /wp-admin/upload.php1,672 ▲2724.19 ▲0.00107.47 ▲0.4746.07 ▲2.56
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,2632.0828.6630.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/joli-faq-seo/includes/fs/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 10 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • fs_debug_mode
    • widget_recent-comments
    • theysaidso_admin_options
    • fs_active_plugins
    • fs_accounts
    • joli_faq_seo_settings

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/joli-faq-seo/views/admin/demo-faq.json.php
    • > /wp-content/plugins/joli-faq-seo/joli-faq-seo.php
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WPJoli\\JoliFAQ\\JoliApplication' not found in wp-content/plugins/joli-faq-seo/core/Application.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/joli-faq-seo/views/admin/settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function jfaq_xy() in wp-content/plugins/joli-faq-seo/fs-helpers.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-faq-seo/config/defaults.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function isset_or_null() in wp-content/plugins/joli-faq-seo/views/admin/faq-editor.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-faq-seo/views/notices/rating.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/joli-faq-seo/views/notices/go-pro.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/joli-faq-seo/views/public/jolifaqseo.php:3

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (18 tag instead of maximum 10)
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

joli-faq-seo/joli-faq-seo.php 92% from 13 tests

The principal PHP file in "Joli FAQ SEO - WordPress FAQ Plugin" v. 1.3.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • 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 review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin37,990 lines of code in 192 files:
LanguageFilesBlank linesComment linesLines of code
PHP1508,48418,06937,150
SVG1289352
JSON100265
JavaScript1146109206
CSS181017

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity70.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes68
▷ Abstract classes22.94%
▷ Concrete classes6697.06%
▷ Final classes00.00%
Methods1,401
▷ Static methods20914.92%
▷ Public methods98770.45%
▷ Protected methods191.36%
▷ Private methods39528.19%
Functions136
▷ Named functions12994.85%
▷ Anonymous functions75.15%
Constants166
▷ Global constants9859.04%
▷ Class constants6840.96%
▷ Public constants68100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/fs/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/icon-256x256.png12.57KB5.38KB▼ 57.15%
assets/admin/img/toggle-2.png0.94KB0.10KB▼ 88.89%
assets/admin/img/toggle-4.png1.11KB0.26KB▼ 77.04%
includes/fs/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%