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.01MB] [CPU: ▼3.75ms] Passed 4 tests
Server-side resources used by Academy Certificates - Certificate Builder for Academy LMS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.73 ▼1.60 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.99 ▼1.99 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.00 ▲2.76 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.34 ▼14.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.66 ▲4.52 |
Server storage [IO: ▲11.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 128 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
academyc_required_rewrite_flush |
academyc_version |
academyc_default_certificate_id |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Academy Certificates - Certificate Builder for Academy LMS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.45 ▼0.31 | 1.84 ▼0.03 | 44.49 ▲0.02 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▲0.94 | 106.24 ▼0.25 | 40.80 ▼2.02 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▲0.03 | 39.64 ▼3.32 | 36.51 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲8 | 23.15 ▲4.70 | 682.99 ▲16.34 | 54.98 ▼2.54 |
Media Library /wp-admin/upload.php | 1,437 ▲46 | 4.36 ▼0.01 | 101.14 ▼1.28 | 41.20 ▼2.61 |
Uninstaller [IO: ▲0.07MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- academyc_required_rewrite_flush
- db_upgraded
- academyc_version
- academyc_default_certificate_id
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/academy-certificates/includes/admin/views/meta-settings.php:9
- > PHP Fatal error
Uncaught Error: Class 'tFPDF\\PDF' not found in wp-content/plugins/academy-certificates/includes/library/tfpdf/tFPDF/ProtectedPDF.php:9
- > PHP Fatal error
Uncaught Error: Class 'tFPDF\\PDF' not found in wp-content/plugins/academy-certificates/includes/library/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)
There were no browser issues found
Optimizations
Plugin configuration 97% 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 require attention:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
academy-certificates/academy-certificates.php Passed 13 tests
This is the main PHP file of "Academy Certificates - Certificate Builder for Academy LMS" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Award your students with a certificate after finishing a course.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin8,496 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 1,037 | 1,806 | 8,211 |
CSS | 1 | 2 | 6 | 284 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 49.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 398.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 267 | |
▷ Static methods | 21 | 7.87% |
▷ Public methods | 192 | 71.91% |
▷ Protected methods | 12 | 4.49% |
▷ Private methods | 63 | 23.60% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 12 | 46.15% |
▷ Class constants | 14 | 53.85% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/certificate-nograde.png | 13.46KB | 5.54KB | ▼ 58.82% |