84% simple-faq-to-the-website

Code Review | Simple FAQ To The Website

WordPress plugin Simple FAQ To The Website scored84%from 54 tests.

About plugin

  • Plugin page: simple-faq-to-the...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 5, 2020
  • Latest release: Jun 5, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: olenaiaroshynska (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 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.22MB] [CPU: ▼8.05ms] Passed 4 tests

This is a short check of server-side resources used by Simple FAQ To The Website
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2750.29 ▲13.98
Dashboard /wp-admin3.56 ▲0.2146.31 ▼9.22
Posts /wp-admin/edit.php3.61 ▲0.2649.14 ▲0.93
Add New Post /wp-admin/post-new.php6.10 ▲0.2181.28 ▼24.41
Media Library /wp-admin/upload.php3.42 ▲0.1936.88 ▲0.49
Simple FAQ /wp-admin/edit.php?post_type=mxffi_iile_faq3.4638.72
Add Question /wp-admin/post-new.php?post_type=mxffi_iile_faq3.6051.52
Simple FAQ /wp-admin/options-general.php?page=settings_simple_faq3.3833.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Simple FAQ To The Website
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲20514.05 ▼0.337.31 ▲5.6341.82 ▲0.79
Dashboard /wp-admin2,257 ▲695.23 ▲0.32101.65 ▼1.9239.01 ▼1.25
Posts /wp-admin/edit.php2,140 ▲512.40 ▲0.3740.49 ▲1.0434.24 ▲0.44
Add New Post /wp-admin/post-new.php1,553 ▲3923.21 ▲5.70598.98 ▼73.2334.56 ▼18.01
Media Library /wp-admin/upload.php1,436 ▲514.51 ▲0.30103.45 ▼8.9841.81 ▼4.32
Simple FAQ /wp-admin/edit.php?post_type=mxffi_iile_faq1,1132.4433.6530.24
Add Question /wp-admin/post-new.php?post_type=mxffi_iile_faq2,2997.89166.3659.47
Simple FAQ /wp-admin/options-general.php?page=settings_simple_faq9322.4139.7724.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% 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)
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-faq-to-the-website/includes/admin/views/settings-page.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: faq, question, answer

simple-faq-to-the-website/simple-faq-to-the-website.php Passed 13 tests

The primary PHP file in "Simple FAQ To The Website" version 1.0 is used by WordPress to initiate all plugin functionality
63 characters long description:
This plugin allows you to place the FAQ system to your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected14,204 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,3901,5129,985
CSS46192,561
PHP26648395940
SVG100685
PO File18833

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes14.76%
▷ Concrete classes2095.24%
▷ Final classes15.00%
Methods68
▷ Static methods3247.06%
▷ Public methods68100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin