78% arconix-faq

Code Review | Arconix FAQ

WordPress plugin Arconix FAQ scored78%from 54 tests.

About plugin

  • Plugin page: arconix-faq
  • Plugin version: 1.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Mar 9, 2012
  • Latest release: Mar 31, 2021
  • Number of updates: 95
  • Update frequency: every 34.9 days
  • Top authors: jgardner03 (64.21%)tychesoftwares (33.68%)ashokrane (4.21%)

Code review

54 tests

User reviews

78 reviews

Install metrics

10,000+ active /180,830 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.94MB] [CPU: ▼0.91ms] Passed 4 tests

Server-side resources used by Arconix FAQ
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4744.70 ▼1.75
Dashboard /wp-admin4.45 ▲1.1561.44 ▼1.31
Posts /wp-admin/edit.php4.47 ▲1.1154.92 ▲4.70
Add New Post /wp-admin/post-new.php6.98 ▲1.0996.18 ▼5.26
Media Library /wp-admin/upload.php4.31 ▲1.0853.11 ▲15.91
Add New /wp-admin/post-new.php?post_type=faq4.7660.38
FAQ & Support /wp-admin/edit.php?post_type=faq&page=faq_support_page4.2839.01
FAQ /wp-admin/edit.php?post_type=faq4.3544.51
Frequently Asked Questions for Arconix FAQ /wp-admin/index.php?page=faq_faq_page4.2839.98
Groups /wp-admin/edit-tags.php?taxonomy=group&post_type=faq4.3043.60

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 507 new files
Database: no new tables, 7 new options
New WordPress options
faq_version
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Arconix FAQ
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12114.42 ▲0.071.88 ▲0.0237.21 ▼7.91
Dashboard /wp-admin2,273 ▲965.62 ▲0.0494.08 ▼12.6779.47 ▲31.73
Posts /wp-admin/edit.php2,197 ▲972.21 ▲0.2240.01 ▼2.5434.83 ▼4.25
Add New Post /wp-admin/post-new.php1,771 ▲24324.22 ▲1.00757.13 ▲116.1452.31 ▼2.34
Media Library /wp-admin/upload.php1,490 ▲904.30 ▲0.07103.72 ▼2.5569.05 ▲24.95
Add New /wp-admin/post-new.php?post_type=faq2,4857.90189.43158.23
FAQ & Support /wp-admin/edit.php?post_type=faq&page=faq_support_page9362.1430.9845.98
FAQ /wp-admin/edit.php?post_type=faq1,1822.1937.8532.91
Frequently Asked Questions for Arconix FAQ /wp-admin/index.php?page=faq_faq_page9362.2325.1737.04
Groups /wp-admin/edit-tags.php?taxonomy=group&post_type=faq1,3382.4531.4539.49

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • faq_version
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/arconix-faq/includes/metabox/apigen/hook-docs.php
    • > /wp-content/plugins/arconix-faq/includes/metabox/tests/phpunit/includes/bootstrap.php
  • 62× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/arconix-faq/includes/metabox/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-faq/includes/metabox/tests/cmb-tests-base.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arconix-faq/plugin.php:115
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/arconix-faq/includes/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/arconix-faq/includes/metabox/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/arconix-faq/includes/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/arconix-faq/includes/metabox/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/arconix-faq/includes/metabox/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/arconix-faq/includes/metabox/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-faq/includes/metabox/tests/cmb-tests-base.php:10

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: faq, faq plugin, toggle, accordion, arconix...

arconix-faq/plugin.php 92% from 13 tests

The main PHP script in "Arconix FAQ" version 1.9.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("arconix-faq.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected69,856 lines of code in 293 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP934,1868,47315,062
CSS204781,2975,969
JavaScript208461,1794,974
XML3014,515
JSON5004,356
Sass17305251,408
Markdown72660816
Bourne Shell46745209
YAML2116190
diff216834

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity19.81
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes104
▷ Abstract classes1211.54%
▷ Concrete classes9288.46%
▷ Final classes00.00%
Methods1,065
▷ Static methods17116.06%
▷ Public methods91185.54%
▷ Protected methods13712.86%
▷ Private methods171.60%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants753.85%
▷ Class constants646.15%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
50 PNG files occupy 0.67MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/metabox/apigen/theme-bootstrap/src/resources/tree-hasnext.png0.13KB0.09KB▼ 31.25%
includes/component/welcome-page/assets/images/icon-256x256.png104.10KB22.45KB▼ 78.43%
includes/metabox/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
images/page-16x16.png0.33KB0.46KB0.00%
screenshot-1.png15.89KB7.51KB▼ 52.74%