83% wsfaq

Code Review | WSFAQ

WordPress plugin WSFAQ scored83%from 54 tests.

About plugin

  • Plugin page: wsfaq
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.1-4.6
  • WordPress version: 6.3.1
  • First release: Aug 24, 2016
  • Latest release: Aug 22, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: websanskruti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /500 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.60ms] Passed 4 tests

An overview of server-side resources used by WSFAQ
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.79 ▼6.57
Dashboard /wp-admin3.34 ▼0.0040.44 ▼16.23
Posts /wp-admin/edit.php3.39 ▲0.0445.02 ▼0.96
Add New Post /wp-admin/post-new.php5.94 ▲0.0675.98 ▼14.65
Media Library /wp-admin/upload.php3.27 ▲0.0436.29 ▲3.24
All Questions /wp-admin/edit.php?post_type=wsfaq_wsf_cat3.3131.23
Add Category /wp-admin/edit-tags.php?taxonomy=faqcategory&post_type=wsfaq_wsf_cat3.2632.14
FAQs Settings /wp-admin/edit.php?post_type=wsfaq_wsf_cat&page=wsfaq_wsf_cat3.2129.88
Add Question /wp-admin/post-new.php?post_type=wsfaq_wsf_cat3.4149.37

Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WSFAQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲22313.96 ▼0.428.02 ▲6.2742.33 ▲4.71
Dashboard /wp-admin2,260 ▲725.09 ▲0.21112.83 ▲1.9442.07 ▲3.69
Posts /wp-admin/edit.php2,145 ▲562.32 ▲0.3539.27 ▼1.5336.53 ▲0.65
Add New Post /wp-admin/post-new.php1,557 ▲3823.29 ▲0.05651.82 ▼17.1633.31 ▼28.84
Media Library /wp-admin/upload.php1,442 ▲574.46 ▲0.2394.61 ▲1.6340.68 ▼6.27
All Questions /wp-admin/edit.php?post_type=wsfaq_wsf_cat1,1372.2439.0631.61
Add Category /wp-admin/edit-tags.php?taxonomy=faqcategory&post_type=wsfaq_wsf_cat1,3242.0631.4626.73
FAQs Settings /wp-admin/edit.php?post_type=wsfaq_wsf_cat&page=wsfaq_wsf_cat1,3412.7465.4026.55
Add Question /wp-admin/post-new.php?post_type=wsfaq_wsf_cat2,4997.86182.0866.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wsfaq_wsf_cat&page=wsfaq_wsf_cat
    • > Notice in wp-content/plugins/wsfaq/wsfaq_all.php+228
    Trying to access array offset on value of type bool

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please a description for screenshot #1 in wsfaq/assets to your readme.txt
You can look at the official readme.txt

wsfaq/wsfaq_all.php 85% from 13 tests

The main PHP file in "WSFAQ" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wsfaq.php" instead of "wsfaq_all.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 405 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected552 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP212845543
CSS2045
JavaScript2054

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot_1_wsfaq_frontend.png8.20KB4.13KB▼ 49.62%