89% categorized-simple-faq

Code Review | Categorized Simple FAQ Plugin

WordPress plugin Categorized Simple FAQ Plugin scored 89% from 54 tests.

About plugin

  • Plugin page: categorized-simpl...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2018
  • Latest release: Jan 2, 2019
  • Number of updates: 4
  • Update frequency: every 127.3 days
  • Top authors: wamasoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 690 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
Install script ran successfully

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

This is a short check of server-side resources used by Categorized Simple FAQ Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.73 ▲1.90
Dashboard /wp-admin3.35 ▲0.0444.56 ▼1.39
Posts /wp-admin/edit.php3.40 ▲0.0448.73 ▲1.45
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.08 ▼1.48
Media Library /wp-admin/upload.php3.27 ▲0.0434.35 ▲3.01
All FAQ /wp-admin/edit.php?post_type=simfaq3.3139.53
Category /wp-admin/edit-tags.php?taxonomy=simfaq_texonamy&post_type=simfaq3.2631.80
Add New /wp-admin/post-new.php?post_type=simfaq3.3950.52
Settings /wp-admin/edit.php?post_type=simfaq&page=simfaq-designs3.2329.97

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Categorized Simple FAQ Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8713.29 ▼1.022.12 ▲0.1137.54 ▼2.98
Dashboard /wp-admin2,243 ▲555.90 ▲1.04107.19 ▲2.2741.74 ▲0.84
Posts /wp-admin/edit.php2,126 ▲372.00 ▼0.0339.69 ▲3.9236.38 ▼2.07
Add New Post /wp-admin/post-new.php1,564 ▲5023.13 ▲5.51590.88 ▼70.4854.86 ▲0.85
Media Library /wp-admin/upload.php1,428 ▲464.23 ▼0.0297.15 ▼2.1746.63 ▲4.63
All FAQ /wp-admin/edit.php?post_type=simfaq1,1071.9331.3525.69
Category /wp-admin/edit-tags.php?taxonomy=simfaq_texonamy&post_type=simfaq1,2822.1426.1026.43
Add New /wp-admin/post-new.php?post_type=simfaq2,2877.62166.1163.78
Settings /wp-admin/edit.php?post_type=simfaq&page=simfaq-designs8212.0524.4623.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === categorized-simple-faq === )
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8 in categorized-simple-faq/assets to your readme.txt
You can take inspiration from this readme.txt

categorized-simple-faq/init.php 85% from 13 tests

The principal PHP file in "Categorized Simple FAQ Plugin" v. 1... is loaded by WordPress automatically on each request
The following require your attention:
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "1...")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("categorized-simple-faq.php" instead of "init.php")

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
There were no executable files found in this plugin565 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3247230
JavaScript1670223
CSS233112

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/minus.png2.48KB2.20KB▼ 11.50%
images/plus.png4.93KB4.93KB0.00%
images/question.png17.57KB10.67KB▼ 39.30%