90% multisite-faqs

Code Review | Multisite FAQS

WordPress plugin Multisite FAQS scored 90% from 54 tests.

About plugin

  • Plugin page: multisite-faqs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.9.2
  • First release: Dec 3, 2019
  • Latest release: Mar 10, 2021
  • Number of updates: 9
  • Update frequency: every 51.6 days
  • Top authors: wppluginstech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 422 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Multisite FAQS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0469.14 ▲12.72
Dashboard /wp-admin3.47 ▲0.0635.55 ▼1.67
Posts /wp-admin/edit.php3.69 ▲0.0541.21 ▼3.04
Add New Post /wp-admin/post-new.php6.94 ▼0.03163.22 ▼1,215.65
Media Library /wp-admin/upload.php3.34 ▲0.0534.37 ▼5.66
Add New /wp-admin/post-new.php?post_type=faq3.6850.20
Groups /wp-admin/edit-tags.php?taxonomy=faq-group&post_type=faq3.3529.95
Settings /wp-admin/edit.php?post_type=faq&page=multisite_faqs3.3231.84
FAQs /wp-admin/edit.php?post_type=faq3.4626.02

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 1 new option
New WordPress options
multisite_faqs_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multisite FAQS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,843 ▲12116.08 ▲0.036.73 ▲0.772.15 ▲0.06
Dashboard /wp-admin2,953 ▲927.00 ▲0.76116.58 ▼22.42153.61 ▼80.52
Posts /wp-admin/edit.php2,751 ▲633.56 ▲0.3264.38 ▼4.84154.60 ▲9.66
Add New Post /wp-admin/post-new.php1,709 ▲4816.86 ▲0.17413.48 ▼17.38213.96 ▲33.58
Media Library /wp-admin/upload.php1,762 ▲646.07 ▲0.61112.46 ▼33.58183.01 ▼4.38
Add New /wp-admin/post-new.php?post_type=faq2,95510.49185.85193.14
Groups /wp-admin/edit-tags.php?taxonomy=faq-group&post_type=faq1,6863.3358.67124.03
Settings /wp-admin/edit.php?post_type=faq&page=multisite_faqs2,4813.6797.37143.39
FAQs /wp-admin/edit.php?post_type=faq1,4363.2760.18125.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • multisite_faqs_options

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: multisite faqs, grouped faqs, filtered faqs, faqs, faq...

multisite-faqs/multisite-faqs.php Passed 13 tests

The entry point to "Multisite FAQS" version 1.0 is a PHP file that has certain tags in its header comment area
70 characters long description:
Manage and Consolidate FAQs across a Wordpress Multisite Installation.

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 detected1,970 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP103047071,070
SVG100565
PO File16169146
LESS210682
CSS401371
JavaScript25936

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity19.71
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods53
▷ Static methods35.66%
▷ Public methods4075.47%
▷ Protected methods00.00%
▷ Private methods1324.53%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin