84% mklasens-faq

Code Review | mklasen's FAQ

WordPress plugin mklasen's FAQ scored84%from 54 tests.

About plugin

  • Plugin page: mklasens-faq
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Jan 10, 2018
  • Number of updates: 12
  • Update frequency: every 88.6 days
  • Top authors: mklasen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

A check of server-side resources used by mklasen's FAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.50 ▲0.36
Dashboard /wp-admin3.37 ▲0.0756.08 ▼5.17
Posts /wp-admin/edit.php3.42 ▲0.0663.37 ▲5.14
Add New Post /wp-admin/post-new.php5.97 ▲0.0991.54 ▼18.88
Media Library /wp-admin/upload.php3.29 ▲0.0641.62 ▲7.11
Add Question /wp-admin/post-new.php?post_type=faq3.4552.23
All Questions /wp-admin/edit.php?post_type=faq3.3339.81
Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=faq3.2934.48

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

mklasen's FAQ: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲14913.34 ▼1.037.64 ▲6.0340.50 ▼1.34
Dashboard /wp-admin2,230 ▲565.54 ▼0.0994.40 ▲3.6542.44 ▼4.07
Posts /wp-admin/edit.php2,135 ▲381.99 ▼0.0440.77 ▲3.0535.38 ▲3.70
Add New Post /wp-admin/post-new.php6,266 ▲4,73125.85 ▲7.52928.70 ▲253.5560.77 ▼6.60
Media Library /wp-admin/upload.php1,438 ▲384.23 ▲0.0196.26 ▼11.2140.48 ▼8.87
Add Question /wp-admin/post-new.php?post_type=faq2,5927.85190.6871.49
All Questions /wp-admin/edit.php?post_type=faq1,0821.9129.5731.62
Categories /wp-admin/edit-tags.php?taxonomy=faq-category&post_type=faq1,3062.1426.7730.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mklasens-faq/mklasens-faq.php

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: frequently, questions, veelgestelde, easy, asked...

mklasens-faq/mklasens-faq.php Passed 13 tests

The entry point to "mklasen's FAQ" version 1.1 is a PHP file that has certain tags in its header comment area
131 characters long description:
Add easy Frequently Asked Questions to your WordPress website. Answers are shown (slide-down) after a visitor clicks on a question.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin253 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP15871184
CSS211044
JavaScript20225

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions9
▷ Named functions9100.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.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/faq-icon.png20.02KB1.09KB▼ 94.57%