89% faq-schema-for-elementor

Code Review | FAQ Schema for Elementor

WordPress plugin FAQ Schema for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: faq-schema-for-el...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 7, 2020
  • Latest release: Dec 17, 2020
  • Number of updates: 9
  • Update frequency: every 34.9 days
  • Top authors: jasonhsu (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /5,606 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by FAQ Schema for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.70 ▼2.03
Dashboard /wp-admin3.32 ▲0.0253.00 ▲2.00
Posts /wp-admin/edit.php3.37 ▲0.0249.31 ▼7.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.56 ▼35.37
Media Library /wp-admin/upload.php3.24 ▲0.0140.16 ▲0.90

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

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

Browser metrics Passed 4 tests

A check of browser resources used by FAQ Schema for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.35 ▼0.871.79 ▲0.1242.28 ▲0.01
Dashboard /wp-admin2,209 ▲215.90 ▲1.07100.16 ▼0.9940.71 ▲0.56
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0735.93 ▼5.4035.34 ▼1.71
Add New Post /wp-admin/post-new.php1,533 ▲523.41 ▲5.14675.48 ▼4.1960.01 ▲2.22
Media Library /wp-admin/upload.php1,391 ▲34.13 ▼0.11112.90 ▲3.3147.90 ▲0.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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 require attention:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in faq-schema-for-elementor/assets to your readme.txt
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

faq-schema-for-elementor/elementor-faq-schema.php 85% from 13 tests

"FAQ Schema for Elementor" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("faq-schema-for-elementor.php" instead of "elementor-faq-schema.php")

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 detected151 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP337106140
JavaScript1158
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity5.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1076.92%
▷ Protected methods215.38%
▷ Private methods17.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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