Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼9.39MB] [CPU: ▼1,938,673.34ms] Passed 4 tests
Server-side resources used by Dozent LMS Certificate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 43.76 ▲2.44 |
Dashboard /wp-admin | 3.40 ▼37.72 | 52.72 ▼7,754,662.41 |
Posts /wp-admin/edit.php | 3.51 ▲0.11 | 51.02 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.05 | 86.17 ▼32.64 |
Media Library /wp-admin/upload.php | 3.32 ▲0.05 | 43.12 ▲6.08 |
Server storage [IO: ▲11.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 368 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
DLC_VERSION |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Dozent LMS Certificate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.35 ▲0.23 | 2.01 ▲0.42 | 45.59 ▲7.44 |
Dashboard /wp-admin | 2,200 ▲23 | 5.64 ▲0.10 | 94.97 ▲4.75 | 42.21 ▼3.75 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.14 ▲0.16 | 35.39 ▼9.47 | 34.32 ▼2.25 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.40 ▲0.40 | 671.35 ▼32.98 | 53.57 ▲1.97 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.16 ▼0.03 | 112.20 ▲4.51 | 48.95 ▲7.39 |
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 were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- DLC_VERSION
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dozent-lms-certificate/vendor/sabberworm/php-css-parser/tests/quickdump.php
- 197× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/dozent-lms-certificate/vendor/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 69
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\Shape' not found in wp-content/plugins/dozent-lms-certificate/vendor/phenx/php-svg-lib/src/Svg/Tag/Ellipse.php:11
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/dozent-lms-certificate/vendor/phenx/php-font-lib/src/FontLib/Table/Type/maxp.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/dozent-lms-certificate/vendor/sabberworm/php-css-parser/tests/Sabberworm/CSS/OutputFormatTest.php:27
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/dozent-lms-certificate/vendor/phenx/php-svg-lib/src/Svg/Tag/LinearGradient.php:15
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/dozent-lms-certificate/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/LineName.php:8
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\Block' not found in wp-content/plugins/dozent-lms-certificate/vendor/dompdf/dompdf/src/Renderer/Image.php:20
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/dozent-lms-certificate/vendor/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 18
- > PHP Notice
Undefined variable: fontDir in wp-content/plugins/dozent-lms-certificate/vendor/dompdf/dompdf/lib/fonts/dompdf_font_family_cache.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/dozent-lms-certificate/vendor/dompdf/dompdf/src/FrameReflower/NullFrameReflower.php:19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: pdf, lms, dozentlms, course, elearning
dozent-lms-certificate/dozent-lms-certificate.php 92% from 13 tests
The main file in "Dozent LMS Certificate" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.5" instead of "4.7")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin51,497 lines of code in 284 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 222 | 8,964 | 15,689 | 49,262 |
Markdown | 6 | 265 | 0 | 947 |
CSS | 43 | 137 | 60 | 700 |
JSON | 6 | 0 | 0 | 377 |
XML | 5 | 3 | 2 | 186 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 35.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 797.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 192 | |
▷ Abstract classes | 12 | 6.25% |
▷ Concrete classes | 180 | 93.75% |
▷ Final classes | 1 | 0.56% |
Methods | 2,117 | |
▷ Static methods | 118 | 5.57% |
▷ Public methods | 1,832 | 86.54% |
▷ Protected methods | 210 | 9.92% |
▷ Private methods | 75 | 3.54% |
Functions | 16 | |
▷ Named functions | 1 | 6.25% |
▷ Anonymous functions | 15 | 93.75% |
Constants | 180 | |
▷ Global constants | 6 | 3.33% |
▷ Class constants | 174 | 96.67% |
▷ Public constants | 174 | 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
3 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
core/import/modern-certificate.png | 31.85KB | 13.73KB | ▼ 56.90% |
core/import/elegant-certificate.png | 48.22KB | 22.91KB | ▼ 52.49% |