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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.67 | 13.88 ▼27.69 |
Dashboard /wp-admin | 3.22 ▼0.08 | 36.45 ▼13.35 |
Posts /wp-admin/edit.php | 3.15 ▼0.21 | 28.27 ▼20.79 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.51 ▼6.53 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.07 | 1.58 ▼0.03 | 41.99 ▲3.09 |
Dashboard /wp-admin | 2,195 ▲14 | 5.54 ▼0.17 | 80.90 ▼16.29 | 37.22 ▼6.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.02 | 32.86 ▼5.82 | 34.41 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,528 ▼1 | 23.02 ▼0.13 | 589.67 ▼84.57 | 53.24 ▲1.95 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.24 ▲0.04 | 99.35 ▲1.42 | 40.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 57 | 11 | 436 |
PHP | 1 | 40 | 19 | 238 |
PO File | 1 | 34 | 69 | 87 |
Markdown | 1 | 2 | 0 | 8 |
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 code | 0.39 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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