89% mbg-faq-block

Code Review | FAQPage Schema Wordpress Plugin

WordPress plugin FAQPage Schema Wordpress Plugin scored89%from 54 tests.

About plugin

  • Plugin page: mbg-faq-block
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7
  • WordPress version: 6.3.1
  • First release: Oct 30, 2019
  • Latest release: Apr 10, 2021
  • Number of updates: 7
  • Update frequency: every 75.6 days
  • Top authors: IM Ninjas (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,490 total downloads

Benchmarks

Plugin footprint 83% 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: ▼0.09MB] [CPU: ▼19.45ms] Passed 4 tests

This is a short check of server-side resources used by FAQPage Schema Wordpress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.79 ▼3.58
Dashboard /wp-admin3.06 ▼0.2827.85 ▼32.13
Posts /wp-admin/edit.php3.36 ▲0.0147.55 ▼3.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.78 ▼25.67
Media Library /wp-admin/upload.php3.12 ▼0.1023.05 ▼16.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for FAQPage Schema Wordpress Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.15 ▼0.231.92 ▲0.1247.00 ▲1.50
Dashboard /wp-admin2,195 ▲155.59 ▼0.1095.47 ▲8.2141.85 ▼4.86
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0447.30 ▲0.6532.46 ▼5.45
Add New Post /wp-admin/post-new.php6,202 ▲4,66719.08 ▼4.34917.83 ▲226.1556.60 ▼1.73
Media Library /wp-admin/upload.php1,397 ▼64.37 ▲0.15104.70 ▼0.6745.91 ▲2.49

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === mbg-faq-block === )
The official readme.txt is a good inspiration

mbg-faq-block/plugin.php 85% from 13 tests

The main PHP file in "FAQPage Schema Wordpress Plugin" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mbg-faq-block.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected251 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32878157
PHP2174458
Sass33125
CSS211211

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin