93% lbk-faqs-schema

Code Review | LBK FAQs Schema

WordPress plugin LBK FAQs Schema scored 93% from 54 tests.

About plugin

  • Plugin page: lbk-faqs-schema
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.1.3-5.7
  • WordPress version: 5.9.2
  • First release: Mar 26, 2021
  • Latest release: Jun 17, 2021
  • Number of updates: 25
  • Update frequency: every 3.4 days
  • Top authors: serviceslbk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 930 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼294.23ms] Passed 4 tests

An overview of server-side resources used by LBK FAQs Schema
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0558.55 ▲10.06
Dashboard /wp-admin3.47 ▲0.0632.64 ▲0.30
Posts /wp-admin/edit.php3.68 ▲0.0436.95 ▼0.04
Add New Post /wp-admin/post-new.php6.95 ▼0.0596.64 ▼1,178.88
Media Library /wp-admin/upload.php3.34 ▲0.0524.67 ▲1.72

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for LBK FAQs Schema
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,822 ▲10017.50 ▲1.488.66 ▲2.453.22 ▲0.81
Dashboard /wp-admin2,918 ▲607.15 ▲0.97131.18 ▼1.37158.87 ▼2.57
Posts /wp-admin/edit.php2,948 ▲2604.67 ▲1.4495.25 ▲30.80140.92 ▼1.60
Add New Post /wp-admin/post-new.php1,715 ▲5420.12 ▲3.65379.80 ▼39.00168.99 ▲18.14
Media Library /wp-admin/upload.php1,959 ▲2616.54 ▲1.01137.02 ▼4.44180.69 ▼7.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lbk-faqs-schema/faq-schema.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The General section of the settings.) image missing
Please take inspiration from this readme.txt

lbk-faqs-schema/faq-schema.php 69% from 13 tests

This is the main PHP file of "LBK FAQs Schema" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("lbk-faqs-schema.php" instead of "faq-schema.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("1.1.2" instead of "1.1.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected322 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP337179169
CSS115092
JavaScript110061

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.00
▷ Minimum class complexity8.00
▷ Maximum class complexity10.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods14
▷ Static methods750.00%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin