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.00MB] [CPU: ▼6.38ms] Passed 4 tests
Server-side resources used by Attendance Management For LifterLMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.06 ▼13.70 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.56 ▲1.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.57 ▼2.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.26 ▼10.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.05 ▲0.91 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 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 Attendance Management For LifterLMS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.26 ▲0.01 | 1.62 ▼1.62 | 51.57 ▲9.11 |
Dashboard /wp-admin | 2,209 ▲24 | 5.91 ▲0.87 | 102.87 ▼1.78 | 40.51 ▼1.95 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.14 ▲0.09 | 38.08 ▼0.22 | 36.60 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 22.99 ▼0.13 | 646.00 ▼3.12 | 53.48 ▼17.30 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.03 | 105.30 ▼5.84 | 45.53 ▲2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/attendance-management-for-lifterlms/includes/integration/llmsat-views.php on line 6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/attendance-management-for-lifterlms/includes/integration/llmsat-views.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/attendance-management-for-lifterlms/includes/integration/llmsat-views.php on line 6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: engagement, award, submission, nomination, reward...
attendance-management-for-lifterlms/attendance-management-for-lifterlms.php 85% from 13 tests
The main PHP script in "Attendance Management For LifterLMS" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,411 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 254 | 317 | 1,079 |
CSS | 2 | 16 | 6 | 210 |
JavaScript | 2 | 10 | 1 | 65 |
Markdown | 1 | 18 | 0 | 57 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 40 | 85.11% |
▷ Protected methods | 1 | 2.13% |
▷ Private methods | 6 | 12.77% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.47MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.PNG | 50.92KB | 21.83KB | ▼ 57.12% |
assets/screenshot-6.PNG | 55.53KB | 23.33KB | ▼ 57.98% |
assets/screenshot-2.PNG | 68.45KB | 31.47KB | ▼ 54.01% |
assets/screenshot-3.PNG | 41.41KB | 18.31KB | ▼ 55.79% |
assets/screenshot-9.PNG | 71.92KB | 31.94KB | ▼ 55.59% |