89% wpmk-faq

Code Review | WPMK FAQ

WordPress plugin WPMK FAQ scored89%from 54 tests.

About plugin

  • Plugin page: wpmk-faq
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.1.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2018
  • Latest release: Apr 23, 2019
  • Number of updates: 4
  • Update frequency: every 52.3 days
  • Top authors: wpmkorg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /492 total downloads


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.12MB] [CPU: ▼4.98ms] Passed 4 tests

Server-side resources used by WPMK FAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.95 ▼3.34
Dashboard /wp-admin3.42 ▲0.1251.87 ▼4.49
Posts /wp-admin/edit.php3.53 ▲0.1854.24 ▲0.71
Add New Post /wp-admin/post-new.php6.02 ▲0.1486.41 ▼12.81
Media Library /wp-admin/upload.php3.34 ▲0.1135.63 ▲1.87
WPMK FAQ /wp-admin/edit.php?post_type=wpmk-faq3.3836.25
Tags /wp-admin/edit-tags.php?taxonomy=wpmk-faq-tag&post_type=wpmk-faq3.3436.38
Add New FAQ /wp-admin/post-new.php?post_type=wpmk-faq3.4654.54
Category /wp-admin/edit-tags.php?taxonomy=wpmk-faq-category&post_type=wpmk-faq3.3439.26

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by WPMK FAQ
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,941 ▲18013.93 ▼0.307.34 ▲5.5542.07 ▼1.38
Dashboard /wp-admin2,252 ▲785.77 ▲0.12100.23 ▲5.9743.20 ▲2.79
Posts /wp-admin/edit.php2,165 ▲652.45 ▲0.4443.30 ▲1.4540.13 ▲2.55
Add New Post /wp-admin/post-new.php1,577 ▲5123.43 ▲0.03604.67 ▼75.2133.74 ▼26.98
Media Library /wp-admin/upload.php1,457 ▲574.43 ▲0.26100.36 ▼4.6444.37 ▼1.22
WPMK FAQ /wp-admin/edit.php?post_type=wpmk-faq1,1622.2237.7829.95
Tags /wp-admin/edit-tags.php?taxonomy=wpmk-faq-tag&post_type=wpmk-faq1,3142.0532.0031.55
Add New FAQ /wp-admin/post-new.php?post_type=wpmk-faq2,4408.07177.2965.12
Category /wp-admin/edit-tags.php?taxonomy=wpmk-faq-category&post_type=wpmk-faq1,3392.0230.6829.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

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


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires php: Invalid plugin version format
  • Screenshots: Add an image for screenshot #1 (Skins with icons)
The official readme.txt is a good inspiration

wpmk-faq/wpmk-faq.php 85% from 13 tests

"WPMK FAQ" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 225 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected3,091 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods27.41%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.88KB20.03KB▼ 37.17%