90% material-faq-manager

Code Review | Material FAQ Manager

WordPress plugin Material FAQ Manager scored90%from 54 tests.

About plugin

  • Plugin page: material-faq-manager
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.3-4.9
  • WordPress version: 6.3.1
  • First release: Nov 24, 2017
  • Latest release: Nov 24, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: siprasaloni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /590 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.30ms] Passed 4 tests

A check of server-side resources used by Material FAQ Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.98 ▼6.93
Dashboard /wp-admin3.34 ▲0.0443.00 ▼5.67
Posts /wp-admin/edit.php3.39 ▲0.0347.95 ▼1.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.32 ▼12.86
Media Library /wp-admin/upload.php3.26 ▲0.0332.40 ▼3.72
FAQ Settings /wp-admin/edit.php?post_type=mfm_faq&page=faqsetting3.2331.29
All FAQ /wp-admin/edit.php?post_type=mfm_faq3.3035.24
Add New /wp-admin/post-new.php?post_type=mfm_faq3.3945.19

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Material FAQ Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.39 ▼1.217.26 ▲5.2237.75 ▼8.96
Dashboard /wp-admin2,226 ▲465.62 ▼0.0283.32 ▼8.9735.69 ▼4.10
Posts /wp-admin/edit.php2,128 ▲282.04 ▲0.0539.99 ▲1.7936.89 ▼1.36
Add New Post /wp-admin/post-new.php1,552 ▲2423.14 ▼0.22639.67 ▼115.3355.72 ▼14.08
Media Library /wp-admin/upload.php1,431 ▲314.17 ▼0.0595.18 ▼20.8941.76 ▼0.55
FAQ Settings /wp-admin/edit.php?post_type=mfm_faq&page=faqsetting8151.9624.1325.49
All FAQ /wp-admin/edit.php?post_type=mfm_faq1,1031.9330.8632.15
Add New /wp-admin/post-new.php?post_type=mfm_faq2,3457.72165.2062.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: faq, posts, custom post type, material style, collapsible...

material-faq-manager/material-faq-manager.php 92% from 13 tests

The primary PHP file in "Material FAQ Manager" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "4.8.3")

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
Good job! No executable or dangerous file extensions detected200 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1421129
CSS11070
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/arrow-maximise.png0.26KB0.25KB▼ 6.69%
assets/images/arrow-minimise.png0.27KB0.28KB0.00%
assets/images/qamark.png0.44KB0.54KB0.00%