77% easy-faqs-accordion

Code Review | EasyFAQ

WordPress plugin EasyFAQ scored77%from 54 tests.

About plugin

  • Plugin page: easy-faqs-accordion
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2021
  • Latest release: Nov 6, 2022
  • Number of updates: 13
  • Update frequency: every 50.4 days
  • Top authors: vaibhav31gangrade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.82ms] Passed 4 tests

Analyzing server-side resources used by EasyFAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.90 ▼1.19
Dashboard /wp-admin3.34 ▲0.0448.02 ▲1.71
Posts /wp-admin/edit.php3.39 ▲0.0342.43 ▼5.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.59 ▼18.51
Media Library /wp-admin/upload.php3.26 ▲0.0336.90 ▲3.21
FAQ Settings /wp-admin/options-general.php?page=FAQ-plugin-slug3.2331.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for EasyFAQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲11713.86 ▼0.6210.88 ▲8.2544.66 ▲6.17
Dashboard /wp-admin2,199 ▲195.63 ▼0.0485.19 ▼1.1742.20 ▼0.14
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0133.83 ▼4.2233.85 ▼1.77
Add New Post /wp-admin/post-new.php1,534 ▼022.70 ▲4.30659.65 ▲11.7764.48 ▼0.20
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0294.17 ▼21.1343.65 ▼5.49
FAQ Settings /wp-admin/options-general.php?page=FAQ-plugin-slug8171.9924.6124.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 | 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
Please fix the following items
  • 3× 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/easy-faqs-accordion/admin-menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-faqs-accordion/faq-shortcode.php:83
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-faqs-accordion/libraries.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=FAQ-plugin-slug
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=FAQ-plugin-slug 142 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=FAQ-plugin-slug
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=FAQ-plugin-slug 145 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=FAQ-plugin-slug
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=FAQ-plugin-slug 147 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=FAQ-plugin-slug
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=FAQ-plugin-slug 149 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #1, #3, #4 in easy-faqs-accordion/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

easy-faqs-accordion/easy-FAQs-accordion.php 85% from 13 tests

The main PHP script in "EasyFAQ" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-faqs-accordion.php" instead of "easy-FAQs-accordion.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
Success! There were no dangerous files found in this plugin222 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP45026193
CSS2132428
JavaScript1061

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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