84% rb-simple-faqs

Code Review | RB Simple FAQs

WordPress plugin RB Simple FAQs scored84%from 54 tests.

About plugin

  • Plugin page: rb-simple-faqs
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jun 22, 2017
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: redballoondesignltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.65ms] Passed 4 tests

An overview of server-side resources used by RB Simple FAQs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.40 ▼1.88
Dashboard /wp-admin3.42 ▲0.1156.54 ▲4.99
Posts /wp-admin/edit.php3.53 ▲0.1750.21 ▼7.06
Add New Post /wp-admin/post-new.php6.00 ▲0.1186.97 ▼6.66
Media Library /wp-admin/upload.php3.34 ▲0.1140.20 ▲5.55
FAQ Category /wp-admin/edit-tags.php?taxonomy=faqs_cat&post_type=faqs3.4634.97
Options /wp-admin/edit.php?post_type=faqs&page=rbd-faq-options3.3135.71
FAQs /wp-admin/edit.php?post_type=faqs3.3838.81
Add New /wp-admin/post-new.php?post_type=faqs3.4958.18

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for RB Simple FAQs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.25 ▼0.161.76 ▼0.0541.43 ▼6.15
Dashboard /wp-admin2,226 ▲495.54 ▼0.1394.72 ▲1.2939.66 ▼2.78
Posts /wp-admin/edit.php2,141 ▲411.96 ▼0.0740.08 ▼0.5036.02 ▼1.40
Add New Post /wp-admin/post-new.php1,558 ▲2122.74 ▲4.64667.42 ▲50.1857.47 ▼9.75
Media Library /wp-admin/upload.php1,435 ▲354.10 ▼0.10109.71 ▲6.1348.85 ▲2.76
FAQ Category /wp-admin/edit-tags.php?taxonomy=faqs_cat&post_type=faqs1,3122.1232.0532.72
Options /wp-admin/edit.php?post_type=faqs&page=rbd-faq-options1,2792.3337.2144.97
FAQs /wp-admin/edit.php?post_type=faqs1,1181.9629.4830.60
Add New /wp-admin/post-new.php?post_type=faqs2,4517.78175.6668.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 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/rb-simple-faqs/inc/custom_columns.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rb-simple-faqs/inc/settings.php:106
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rb-simple-faqs/faqs.php:33

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: customisation, questions and answers, faq, frequently asked questions, faqs

rb-simple-faqs/faqs.php 92% from 13 tests

The main PHP script in "RB Simple FAQs" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rb-simple-faqs.php" instead of "faqs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,020 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP610254413
JavaScript33946185
CSS4101146
Markdown183093
LESS1121992
HTML1103685
SVG1006

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.31
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-1.png83.00KB23.48KB▼ 71.71%