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.01MB] [CPU: ▼2.81ms] Passed 4 tests
An overview of server-side resources used by Sensei LMS Certificates
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.66 ▼3.99 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.75 ▲3.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.75 ▲2.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.01 ▼8.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.36 ▼1.21 |
Server storage [IO: ▲13.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Sensei LMS Certificates: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 13.32 ▼1.43 | 4.94 ▲3.02 | 40.79 ▲1.14 |
Dashboard /wp-admin | 2,215 ▲30 | 5.79 ▲0.74 | 99.17 ▼7.52 | 38.59 ▼12.20 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.04 | 39.22 ▼1.36 | 34.40 ▼5.05 |
Add New Post /wp-admin/post-new.php | 1,514 ▼29 | 17.69 ▼0.59 | 663.49 ▲33.64 | 50.99 ▲0.51 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.16 ▼0.08 | 97.39 ▼3.01 | 40.56 ▼2.71 |
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
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'tFPDF\\PDF' not found in wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/ProtectedPDF.php:9
- > PHP Fatal error
Uncaught Error: Class 'tFPDF\\PDF' not found in wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDFBarcode.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: certificates, course certificate, sensei lms
sensei-certificates/woothemes-sensei-certificates.php 92% from 13 tests
The entry point to "Sensei LMS Certificates" version 2.5.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("sensei-certificates.php" instead of "woothemes-sensei-certificates.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin11,027 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 78 | 1,592 | 3,065 | 9,494 |
PO File | 4 | 563 | 728 | 1,528 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 58.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 397.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 316 | |
▷ Static methods | 42 | 13.29% |
▷ Public methods | 221 | 69.94% |
▷ Protected methods | 12 | 3.80% |
▷ Private methods | 83 | 26.27% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 22 | |
▷ Global constants | 3 | 13.64% |
▷ Class constants | 19 | 86.36% |
▷ Public constants | 19 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.99MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/certificate_template.png | 999.16KB | 618.38KB | ▼ 38.11% |
assets/images/certificate.png | 1.61KB | 1.65KB | 0.00% |
assets/images/certificate-logo.png | 2.41KB | 1.75KB | ▼ 27.44% |
assets/images/sensei_certificate_nograde.png | 13.46KB | 5.54KB | ▼ 58.82% |