10% ak-bootstrap-faq

Code Review | AK Bootstrap FAQ

WordPress plugin AK Bootstrap FAQ scored10%from 54 tests.

About plugin

  • Plugin page: ak-bootstrap-faq
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Feb 12, 2016
  • Number of updates: 7
  • Update frequency: every 11.4 days
  • Top authors: sendmail2krrish (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,674 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/ak-bootstrap-faq/include/api/inc/number-to-word.php+8
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.26ms] Passed 4 tests

Server-side resources used by AK Bootstrap FAQ
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.376.25 ▼34.96
Dashboard /wp-admin2.11 ▼1.208.09 ▼41.28
Posts /wp-admin/edit.php2.11 ▼1.256.97 ▼43.36
Add New Post /wp-admin/post-new.php2.11 ▼3.785.70 ▼89.42
Media Library /wp-admin/upload.php2.11 ▼1.125.47 ▼31.15
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=akbootstrapfaq2.116.43
Add New /wp-admin/post-new.php?post_type=akbootstrapfaq2.116.75
AK Bootstrap FAQ setting page /wp-admin/edit.php?post_type=akbootstrapfaq&page=akbootstrapfaq-setting-page2.116.88
AK Bootstrap FAQ /wp-admin/edit.php?post_type=akbootstrapfaq2.116.10

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: no new tables, 7 new options
New WordPress options
category_children
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for AK Bootstrap FAQ
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲15013.67 ▼0.9311.20 ▲9.0253.23 ▲2.47
Dashboard /wp-admin2,249 ▲725.74 ▲0.0686.66 ▼11.8836.21 ▼8.73
Posts /wp-admin/edit.php2,156 ▲562.30 ▲0.3134.75 ▼0.2733.34 ▼1.46
Add New Post /wp-admin/post-new.php1,569 ▲4123.12 ▼0.09617.94 ▼91.0934.11 ▼22.83
Media Library /wp-admin/upload.php1,457 ▲604.45 ▲0.25100.15 ▲0.7643.51 ▲0.00
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=akbootstrapfaq1,5172.0632.1732.09
Add New /wp-admin/post-new.php?post_type=akbootstrapfaq2,3297.74169.7062.84
AK Bootstrap FAQ setting page /wp-admin/edit.php?post_type=akbootstrapfaq&page=akbootstrapfaq-setting-page1,9563.0276.7226.75
AK Bootstrap FAQ /wp-admin/edit.php?post_type=akbootstrapfaq1,1582.2132.8728.43

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
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/ak-bootstrap-faq/include/api/inc/number-to-word.php+8
    Array and string offset access syntax with curly braces is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • category_children
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 40 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=akbootstrapfaq
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/ak-bootstrap-faq/include/api/inc/number-to-word.php+58
    Array and string offset access syntax with curly braces is deprecated

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 take a closer look at the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function query_posts() in wp-content/plugins/ak-bootstrap-faq/include/api/template/normal-frontend.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ak-bootstrap-faq/include/api/add-to-head.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ak-bootstrap-faq/include/pages/settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_categories() in wp-content/plugins/ak-bootstrap-faq/include/api/template/category-frontend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ak-bootstrap-faq/ak-bootstrap-faq.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ak-bootstrap-faq/include/api/loop-shortcode.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ak-bootstrap-faq/include/api/post-type.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
  • Screenshots: Please add images for these screenshots: #1 (FAQs page.), #2 (Settings page.), #3 (Normal view.), #4 (category view.), #5 (Design change.)
The official readme.txt is a good inspiration

ak-bootstrap-faq/ak-bootstrap-faq.php Passed 13 tests

The main PHP script in "AK Bootstrap FAQ" version 1.0 is automatically included on every request by WordPress
84 characters long description:
Bootstrap FAQ plugin integrated with Custom Post Type. Shortcode [ak_bootstrap_faq].

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected13,613 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
CSS58248,248
JavaScript35791971,556
Sass1323241,256
LESS1323331,247
SVG200808
PHP83212498

PHP code Passed 2 tests

A brief analysis 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.50
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
10 PNG files occupy 11.67MB with 11.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png787.34KB6.80KB▼ 99.14%
assets/screenshot-2.png1,998.38KB24.11KB▼ 98.79%
screenshot-5.png787.34KB6.80KB▼ 99.14%
assets/screenshot-1.png1,036.34KB14.07KB▼ 98.64%
assets/screenshot-4.png1,353.25KB10.35KB▼ 99.24%