84% faqizer

Code Review | FAQIZER

WordPress plugin FAQIZER scored 84% from 53 tests.

About plugin

  • Plugin page: faqizer
  • Plugin version: 0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1.1
  • WordPress version: 5.8.1
  • First release: Jun 16, 2019
  • Latest release: Aug 11, 2019
  • Number of updates: 7
  • Update frequency: every 8.6 days
  • Top authors: wrightfloat (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼345.93ms] Passed 4 tests

Server-side resources used by FAQIZER
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1736.29 ▲14.79
Dashboard /wp-admin3.13 ▲0.0847.44 ▲1.99
Posts /wp-admin/edit.php3.19 ▲0.0844.50 ▲3.35
Add New Post /wp-admin/post-new.php5.50 ▲0.0791.30 ▼1,386.61
Media Library /wp-admin/upload.php3.07 ▲0.0735.02 ▼2.45
All Faqs  /wp-admin/edit.php?post_type=dlw_wp_faq3.1231.39
Faq Topics /wp-admin/edit-tags.php?taxonomy=dlwfq_topics&post_type=dlw_wp_faq3.0733.74
Add New Faq  /wp-admin/post-new.php?post_type=dlw_wp_faq3.1948.42

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 5 new options
New WordPress options
dlwfq-archive-options-slug
dlwfq-archive-title
dlwfq-plugin-v
dlwfq-total-posts-on-archive-page
dlwfq-archive-accordion

Browser metrics Passed 4 tests

This is an overview of browser requirements for FAQIZER
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,742 ▲16015.95 ▲0.437.56 ▲0.1247.24 ▼6.66
Dashboard /wp-admin3,019 ▲1665.92 ▲0.09134.09 ▲0.7397.67 ▼5.05
Posts /wp-admin/edit.php2,766 ▲632.70 ▲0.0266.01 ▼1.0389.90 ▲5.28
Add New Post /wp-admin/post-new.php1,896 ▲24519.18 ▲2.00371.07 ▲18.80105.94 ▼6.26
Media Library /wp-admin/upload.php1,832 ▲605.04 ▲0.05153.21 ▲14.44115.38 ▼15.86
All Faqs  /wp-admin/edit.php?post_type=dlw_wp_faq1,4542.6366.1565.11
Faq Topics /wp-admin/edit-tags.php?taxonomy=dlwfq_topics&post_type=dlw_wp_faq1,7362.5160.6566.41
Add New Faq  /wp-admin/post-new.php?post_type=dlw_wp_faq3,0279.05205.38130.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/faqizer/faq.php+187
    Use of undefined constant faqs - assumed 'faqs' (this will throw an Error in a future version of PHP)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/faqizer/templates/archive-faqs.php
    • > /wp-content/plugins/faqizer/templates/taxonomy-dlwfq_topics.php

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

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: faqs, frequently asked questions

faqizer/faq.php 85% from 13 tests

The main PHP file in "FAQIZER" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("faqizer.php" instead of "faq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,314 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10249318913
JavaScript12842167
CSS2232149
PO File1313485

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.33
▷ Minimum class complexity8.00
▷ Maximum class complexity15.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1368.42%
▷ Protected methods15.26%
▷ Private methods526.32%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/frontend/img/down-arrow-solid.png0.23KB0.20KB▼ 10.34%