83% infinity-simple-faq

Code Review | Infinity Simple FAQ

WordPress plugin Infinity Simple FAQ scored83%from 54 tests.

About plugin

  • Plugin page: infinity-simple-faq
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 29, 2018
  • Latest release: Nov 30, 2018
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: nahian91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /483 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 gracefully, with no errors

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

Server-side resources used by Infinity Simple FAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0264.53 ▼6.69
Dashboard /wp-admin3.32 ▲0.0280.63 ▼13.17
Posts /wp-admin/edit.php3.37 ▲0.0278.23 ▼15.47
Add New Post /wp-admin/post-new.php5.90 ▲0.02147.55 ▲7.01
Media Library /wp-admin/upload.php3.25 ▲0.0257.88 ▼0.40
FAQs /wp-admin/edit.php?post_type=ifs-faq3.2962.13
Add New /wp-admin/post-new.php?post_type=ifs-faq3.3882.44

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Infinity Simple FAQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10014.30 ▲0.273.90 ▲0.8777.50 ▲0.70
Dashboard /wp-admin2,233 ▲485.86 ▼0.04175.54 ▼8.0987.39 ▲1.50
Posts /wp-admin/edit.php2,119 ▲272.05 ▲0.0463.30 ▼8.7368.21 ▼2.89
Add New Post /wp-admin/post-new.php1,437 ▲4017.51 ▼0.21882.47 ▼108.1473.70 ▲0.61
Media Library /wp-admin/upload.php1,412 ▲304.19 ▲0.02175.58 ▼4.0688.13 ▼11.85
FAQs /wp-admin/edit.php?post_type=ifs-faq1,0801.9858.6658.56
Add New /wp-admin/post-new.php?post_type=ifs-faq2,1667.60308.29115.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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinity-simple-faq/ifs-faq-type.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/infinity-simple-faq/plugin-hook.php:15

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 83% from 29 tests

readme.txt 75% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please describe screenshot #1 in infinity-simple-faq/assets to your readme.txt
  • Requires at least: Invalid plugin version format
  • Contributors: The plugin contributors field is not present
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

infinity-simple-faq/plugin-hook.php 92% from 13 tests

"Infinity Simple FAQ" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("infinity-simple-faq.php" instead of "plugin-hook.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
No dangerous file extensions were detected160 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23028160

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin