89% init-faqs

Code Review | Init FAQ

WordPress plugin Init FAQ scored89%from 54 tests.

About plugin

  • Plugin page: init-faqs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7.2
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Dec 2, 2016
  • Number of updates: 19
  • Update frequency: every 3.2 days
  • Top authors: Akash Darji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,168 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼12.43ms] Passed 4 tests

This is a short check of server-side resources used by Init FAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.36 ▲0.54
Dashboard /wp-admin3.36 ▲0.0245.56 ▼17.27
Posts /wp-admin/edit.php3.41 ▲0.0648.71 ▼3.97
Add New Post /wp-admin/post-new.php5.94 ▲0.0680.17 ▼29.00
Media Library /wp-admin/upload.php3.29 ▲0.0638.78 ▲2.50
FAQs Category /wp-admin/edit-tags.php?taxonomy=init-faqs-cat&post_type=init-faqs3.2833.97
Add New /wp-admin/post-new.php?post_type=init-faqs3.4151.67
All FAQs /wp-admin/edit.php?post_type=init-faqs3.3336.21

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Init FAQ
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲17113.90 ▼0.688.34 ▲6.7538.81 ▲1.04
Dashboard /wp-admin2,234 ▲435.85 ▲0.03100.24 ▼4.3241.45 ▼0.14
Posts /wp-admin/edit.php2,123 ▲312.00 ▼0.1740.72 ▼3.0936.67 ▼4.29
Add New Post /wp-admin/post-new.php1,559 ▲2923.10 ▲4.47674.86 ▲64.4452.08 ▼10.47
Media Library /wp-admin/upload.php1,422 ▲404.20 ▼0.0894.40 ▼3.7443.24 ▲0.77
FAQs Category /wp-admin/edit-tags.php?taxonomy=init-faqs-cat&post_type=init-faqs1,2962.1425.7228.56
Add New /wp-admin/post-new.php?post_type=init-faqs2,3197.66170.7262.32
All FAQs /wp-admin/edit.php?post_type=init-faqs1,0971.9430.5328.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (All Faqs [init_faqs]), #2 (Faq With Category [init_faqs category="11"]), #3 (Faq With Parent Category [init_faqs category="13"]), #4 (Faq With Category List [init_faqs category_list="1"])
  • Requires at least: Version format is invalid
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

init-faqs/init-faqs.php 92% from 13 tests

The main PHP file in "Init FAQ" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin282 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17226218
JavaScript116042
CSS10022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions6
▷ Named functions6100.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
8 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png29.35KB14.97KB▼ 48.99%
css/images/close_faq.png0.18KB0.08KB▼ 53.89%
css/images/close_faq_hover.png0.18KB0.08KB▼ 53.89%
screenshot-4.png43.83KB21.39KB▼ 51.20%
css/images/open_faq.png0.20KB0.09KB▼ 53.47%