84% wplms-dwqa

Code Review | WPLMS DWQA

WordPress plugin WPLMS DWQA scored84%from 54 tests.

About plugin

  • Plugin page: wplms-dwqa
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Nov 13, 2015
  • Latest release: Dec 28, 2018
  • Number of updates: 7
  • Update frequency: every 163.4 days
  • Top authors: wpthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,975 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼17.09ms] Passed 4 tests

An overview of server-side resources used by WPLMS DWQA
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.79 ▼0.6713.88 ▼27.69
Dashboard /wp-admin3.22 ▼0.0836.45 ▼13.35
Posts /wp-admin/edit.php3.15 ▼0.2128.27 ▼20.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.51 ▼6.53
Media Library /wp-admin/upload.php3.25 ▲0.0234.95 ▼4.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPLMS DWQA
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.071.58 ▼0.0341.99 ▲3.09
Dashboard /wp-admin2,195 ▲145.54 ▼0.1780.90 ▼16.2937.22 ▼6.90
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0232.86 ▼5.8234.41 ▲1.64
Add New Post /wp-admin/post-new.php1,528 ▼123.02 ▼0.13589.67 ▼84.5753.24 ▲1.95
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.0499.35 ▲1.4240.80 ▼3.53

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wplms-dwqa/wplms-dwqa.php:35

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: learning management, lms, courses, dwqa

wplms-dwqa/wplms-dwqa.php 92% from 13 tests

The primary PHP file in "WPLMS DWQA" version 1.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin769 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15711436
PHP14019238
PO File1346987
Markdown1208

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin