84% my-wp-faqs-list

Code Review | My WP FAQs

WordPress plugin My WP FAQs scored84%from 54 tests.

About plugin

  • Plugin page: my-wp-faqs-list
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Nov 11, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Sohelwpexpert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /676 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.80ms] Passed 4 tests

A check of server-side resources used by My WP FAQs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.37 ▼6.74
Dashboard /wp-admin3.34 ▲0.0445.23 ▼4.09
Posts /wp-admin/edit.php3.40 ▲0.0447.89 ▼4.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.31 ▼11.37
Media Library /wp-admin/upload.php3.27 ▲0.0438.34 ▲3.90
Add New FAQ /wp-admin/post-new.php?post_type=faq-items3.3949.88
FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=faq-items3.2636.22
FAQs /wp-admin/edit.php?post_type=faq-items3.3134.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for My WP FAQs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲19113.87 ▼0.888.96 ▲6.9739.20 ▼4.51
Dashboard /wp-admin2,241 ▲534.95 ▲0.10107.53 ▲3.3541.00 ▼1.59
Posts /wp-admin/edit.php2,127 ▲382.25 ▲0.2545.90 ▲3.7550.53 ▲14.73
Add New Post /wp-admin/post-new.php1,701 ▲18022.75 ▼0.36658.32 ▲47.3564.14 ▲17.99
Media Library /wp-admin/upload.php1,423 ▲414.27 ▲0.07101.59 ▲3.0347.26 ▲5.18
Add New FAQ /wp-admin/post-new.php?post_type=faq-items2,2847.92183.9167.01
FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=faq-items1,3032.2429.2032.50
FAQs /wp-admin/edit.php?post_type=faq-items1,1082.1831.8828.02

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-wp-faqs-list/main-functions.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: bootstrap faqs, jquery faqs, awesome faqs, post faqs list

my-wp-faqs-list/main-functions.php 85% from 13 tests

The entry point to "My WP FAQs" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 310 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("my-wp-faqs-list.php" instead of "main-functions.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 detected196 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS210103
PHP127892
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin