83% easy-simple-faq

Code Review | Easy & simple FAQ

WordPress plugin Easy & simple FAQ scored83%from 54 tests.

About plugin

  • Plugin page: easy-simple-faq
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2022
  • Latest release: Sep 15, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: webcomet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.54ms] Passed 4 tests

A check of server-side resources used by Easy & simple FAQ
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.64 ▼4.90
Dashboard /wp-admin3.31 ▲0.0151.84 ▲2.06
Posts /wp-admin/edit.php3.36 ▲0.0152.90 ▼1.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.86 ▼4.76
Media Library /wp-admin/upload.php3.24 ▲0.0138.46 ▲0.89

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
webcomet_settings
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy & simple FAQ
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.72 ▲0.761.66 ▼0.4740.90 ▼6.69
Dashboard /wp-admin2,210 ▲335.58 ▼0.0883.76 ▼4.9940.85 ▼1.39
Posts /wp-admin/edit.php2,112 ▲121.99 ▼0.0338.59 ▼2.6535.48 ▼4.93
Add New Post /wp-admin/post-new.php1,536 ▲823.21 ▲0.21674.32 ▼23.9562.33 ▼0.13
Media Library /wp-admin/upload.php1,412 ▲94.27 ▲0.0599.80 ▼10.2749.04 ▲3.55

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
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% 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 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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-simple-faq/easy-and-simple-faq.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function webcomet_get_iframe_url() in wp-content/plugins/easy-simple-faq/views/edit.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in easy-simple-faq/assets to your readme.txt
You can take inspiration from this readme.txt

easy-simple-faq/easy-and-simple-faq.php 85% from 13 tests

Analyzing the main PHP file in "Easy & simple FAQ" version 1.0.3
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-simple-faq.php" instead of "easy-and-simple-faq.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 193 characters long)

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
Good job! No executable or dangerous file extensions detected173 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2349141
JavaScript11032

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected