83% faq-schema-for-pages-and-posts

Code Review | FAQ Schema For Pages And Posts

WordPress plugin FAQ Schema For Pages And Posts scored83%from 54 tests.

About plugin

  • Plugin page: faq-schema-for-pa...
  • Plugin version: 2.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: Feb 21, 2022
  • Number of updates: 29
  • Update frequency: every 28.5 days
  • Top authors: krystianszastok (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

9,000+ active /26,602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.13ms] Passed 4 tests

A check of server-side resources used by FAQ Schema For Pages And Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.55 ▲2.05
Dashboard /wp-admin3.35 ▲0.0445.77 ▲0.98
Posts /wp-admin/edit.php3.40 ▲0.0444.71 ▼4.36
Add New Post /wp-admin/post-new.php5.95 ▲0.0681.93 ▼2.34
Media Library /wp-admin/upload.php3.27 ▲0.0431.60 ▼2.81
FAQ Schema For Pages And Posts /wp-admin/options-general.php?page=wp-faq-schema3.2429.28

Server storage [IO: ▲0.22MB] [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: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for FAQ Schema For Pages And Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲19313.62 ▼0.739.26 ▲7.6141.60 ▼1.57
Dashboard /wp-admin2,281 ▲1015.70 ▲0.1086.36 ▲1.3938.30 ▼5.62
Posts /wp-admin/edit.php2,146 ▲462.25 ▲0.2237.15 ▲1.4033.21 ▼3.68
Add New Post /wp-admin/post-new.php6,290 ▲4,76426.23 ▲2.92886.97 ▲209.1169.75 ▲15.44
Media Library /wp-admin/upload.php1,483 ▲834.43 ▲0.2498.00 ▲1.6944.84 ▼2.35
FAQ Schema For Pages And Posts /wp-admin/options-general.php?page=wp-faq-schema9812.1126.0133.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-faq-schema
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://www.youtube.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Simple backend panel at the end of each page or post, allowing for unique FAQ schema to be added, saves on page update.) image not found
You can take inspiration from this readme.txt

faq-schema-for-pages-and-posts/wp-faq-schema.php 77% from 13 tests

The main PHP script in "FAQ Schema For Pages And Posts" version 2.3.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("faq-schema-for-pages-and-posts.php" instead of "wp-faq-schema.php")

Code Analysis Passed 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 plugin2,642 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript53261571,614
CSS22731528
PHP491255500

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity22.00
▷ Minimum class complexity18.00
▷ Maximum class complexity29.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
css/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%