80% elfsight-faq

Code Review | Accordion FAQ

WordPress plugin Accordion FAQ scored80%from 54 tests.

About plugin

  • Plugin page: elfsight-faq
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.0
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Feb 1, 2019
  • Number of updates: 5
  • Update frequency: every 21.8 days
  • Top authors: elfsight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,142 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.93ms] Passed 4 tests

Analyzing server-side resources used by Accordion FAQ
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1939.21 ▼4.39
Dashboard /wp-admin3.48 ▲0.1844.82 ▼6.84
Posts /wp-admin/edit.php3.60 ▲0.2450.25 ▲4.93
Add New Post /wp-admin/post-new.php6.06 ▲0.1892.18 ▲1.12
Media Library /wp-admin/upload.php3.41 ▲0.1835.02 ▲2.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Accordion FAQ
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.31 ▼1.074.04 ▲2.1843.31 ▼4.79
Dashboard /wp-admin2,221 ▲305.80 ▼0.08101.09 ▼7.1380.93 ▲39.47
Posts /wp-admin/edit.php2,101 ▲151.98 ▼0.0638.76 ▲0.1237.48 ▲2.25
Add New Post /wp-admin/post-new.php1,527 ▲1323.19 ▲5.51671.46 ▼4.6849.99 ▼1.79
Media Library /wp-admin/upload.php1,397 ▲94.16 ▼0.0599.78 ▼9.1073.52 ▲25.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_elfsight_faq_widgets
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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)
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
Congratulations! This plugin passed the SRP test

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: accordion faq, faq plugin, wordpress faq, faq, responsive faq

elfsight-faq/elfsight-faq.php Passed 13 tests

"Accordion FAQ" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
Anticipate your clients’ questions and eliminate their doubts with easy-to-use FAQ

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,004 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP1523810759
JSON100228
HTML10012
JavaScript49354
CSS1371

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity20.67
▷ Minimum class complexity14.00
▷ Maximum class complexity33.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png1.40KB1.41KB0.00%
assets/img/icon-check-green-small.png1.08KB0.30KB▼ 72.64%
assets/img/icon-remove-light-small.png1.12KB0.32KB▼ 71.45%
assets/img/icon-remove-dark-small.png1.13KB0.32KB▼ 71.55%
assets/img/icon-star-blue.png2.44KB1.77KB▼ 27.48%