72% faqs-made-easy

Code Review | FAQs Made Easy

WordPress plugin FAQs Made Easy scored 72% from 54 tests.

About plugin

  • Plugin page: faqs-made-easy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 18, 2017
  • Latest release: Oct 18, 2017
  • Number of updates: 9
  • Update frequency: every 1.3 days
  • Top authors: amnaahmad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 441 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by FAQs Made Easy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1634.07 ▲12.26
Dashboard /wp-admin3.11 ▲0.0543.28 ▲1.87
Posts /wp-admin/edit.php3.15 ▲0.0542.32 ▲0.27
Add New Post /wp-admin/post-new.php5.43 ▼0.0092.34 ▼566.48
Media Library /wp-admin/upload.php3.06 ▲0.0532.11 ▼6.31
All Questions /wp-admin/edit.php?post_type=faqs3.1135.43
Add New /wp-admin/post-new.php?post_type=faqs3.1847.93
FAQ Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=faqs3.0537.68
Settings /wp-admin/edit.php?post_type=faqs&page=faqs_made_easy3.0130.69

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

An overview of browser requirements for FAQs Made Easy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,786 ▲19016.13 ▲0.589.42 ▲1.1551.92 ▲4.94
Dashboard /wp-admin3,045 ▲1116.55 ▲0.63166.91 ▲23.72116.70 ▲7.09
Posts /wp-admin/edit.php2,711 ▼282.74 ▲0.0565.31 ▲1.13104.76 ▲10.86
Add New Post /wp-admin/post-new.php1,537 ▲3918.48 ▼0.31355.79 ▼13.59130.06 ▲18.36
Media Library /wp-admin/upload.php1,882 ▲755.17 ▲0.19133.77 ▼8.80123.21 ▲5.42
All Questions /wp-admin/edit.php?post_type=faqs1,5532.9468.0389.98
Add New /wp-admin/post-new.php?post_type=faqs3,3789.19213.03145.51
FAQ Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=faqs1,9902.7162.72106.67
Settings /wp-admin/edit.php?post_type=faqs&page=faqs_made_easy1,1222.5757.0474.99

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • category_children

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=faqs&page=faqs_made_easy
    • > Notice in wp-content/plugins/faqs-made-easy/settings-api.php+50
    Trying to access array offset on value of type bool

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/faqs-made-easy/shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faqs-made-easy/settings-api.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/faqs-made-easy/main-file.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faqs-made-easy/functions.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faqs&page=faqs_made_easy
    • > Network (severe)
    wp-content/plugins/faqs-made-easy/color-picker.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: frequently asked questions, wordpress, faqs, faqs made easy

faqs-made-easy/main-file.php 92% from 13 tests

"FAQs Made Easy" 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 ("faqs-made-easy.php" instead of "main-file.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin674 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS47357456
PHP48629209
JavaScript2739

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin