84% faq-page

Code Review | FAQ Page

WordPress plugin FAQ Page scored84%from 54 tests.

About plugin

  • Plugin page: faq-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Dec 16, 2015
  • Latest release: Jan 15, 2016
  • Number of updates: 4
  • Update frequency: every 137.5 days
  • Top authors: devmatte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,396 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.77ms] Passed 4 tests

A check of server-side resources used by FAQ Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.81 ▲2.25
Dashboard /wp-admin3.34 ▼0.0148.97 ▼13.13
Posts /wp-admin/edit.php3.39 ▲0.0344.94 ▼4.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.75 ▼7.41
Media Library /wp-admin/upload.php3.26 ▲0.0338.04 ▲2.34
Add New /wp-admin/post-new.php?post_type=faqpage3.3545.12
FAQs /wp-admin/edit.php?post_type=faqpage3.3034.52

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

FAQ Page: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.61 ▼0.708.58 ▲6.7642.34 ▼4.51
Dashboard /wp-admin2,230 ▲395.83 ▲0.9598.16 ▼5.0238.63 ▼4.61
Posts /wp-admin/edit.php2,116 ▲272.06 ▲0.0537.38 ▲3.4135.59 ▼2.10
Add New Post /wp-admin/post-new.php1,556 ▲3623.20 ▲0.18634.46 ▼19.0250.01 ▼7.54
Media Library /wp-admin/upload.php1,409 ▲244.18 ▼0.05100.84 ▼2.1843.41 ▼0.55
Add New /wp-admin/post-new.php?post_type=faqpage2,1527.89171.8762.96
FAQs /wp-admin/edit.php?post_type=faqpage1,0801.9630.8028.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× 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/faq-page/faq-page.php:29

User-side errors Passed 1 test

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

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
6 plugin tags: jquery, faqs, toggle, icons, faq...

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

The main PHP file in "FAQ Page" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Display all your frequently asked questions with a shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected139 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1213473
CSS16055
JavaScript11011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/faqs-minus.png14.19KB0.10KB▼ 99.28%
css/images/faqs-plus.png1.01KB0.10KB▼ 89.62%