84% plvr-wp-faq

Code Review | PLVR WP FAQ

WordPress plugin PLVR WP FAQ scored84%from 54 tests.

About plugin

  • Plugin page: plvr-wp-faq
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2017
  • Latest release: May 16, 2022
  • Number of updates: 6
  • Update frequency: every 317.2 days
  • Top authors: manikmist09 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by PLVR WP FAQ
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0741.93 ▼0.12
Dashboard /wp-admin3.37 ▲0.0750.82 ▼0.35
Posts /wp-admin/edit.php3.42 ▲0.0753.46 ▼1.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.49 ▼16.36
Media Library /wp-admin/upload.php3.30 ▲0.0740.54 ▼2.90
All FAQs /wp-admin/edit.php?post_type=plvr_faq3.3438.38
Add New /wp-admin/post-new.php?post_type=plvr_faq3.4147.01
Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=plvr_faq3.2936.79

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for PLVR WP FAQ
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17113.56 ▼0.826.17 ▲4.4142.49 ▼1.26
Dashboard /wp-admin2,249 ▲495.84 ▼0.0297.92 ▼5.1537.45 ▼3.88
Posts /wp-admin/edit.php2,134 ▲342.01 ▼0.0435.34 ▼6.2735.01 ▼7.62
Add New Post /wp-admin/post-new.php1,552 ▲2617.52 ▼0.11641.75 ▼25.8652.79 ▲1.43
Media Library /wp-admin/upload.php1,428 ▲284.23 ▼0.0096.81 ▼13.1642.84 ▼4.91
All FAQs /wp-admin/edit.php?post_type=plvr_faq1,1001.9333.5928.71
Add New /wp-admin/post-new.php?post_type=plvr_faq2,2677.59168.8260.76
Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=plvr_faq1,2852.1530.5628.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/plvr-wp-faq/inc/plvr-wp-faq-cpt.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/plvr-wp-faq/plvr-wp-faq.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title() in wp-content/plugins/plvr-wp-faq/templates/content-loop.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt might help

plvr-wp-faq/plvr-wp-faq.php 92% from 13 tests

This is the main PHP file of "PLVR WP FAQ" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,851 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP34919178
CSS1001
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin