Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.43ms] Passed 4 tests
A check of server-side resources used by WPUser Certificate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.69 ▼4.78 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.35 ▼1.42 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.72 ▲0.22 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.45 ▼11.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.33 ▲0.67 |
WPUC /wp-admin/admin.php?page=dashboard-setups | 3.24 | 34.69 |
Courses /wp-admin/admin.php?page=dashboard-courses | 3.21 | 33.33 |
License /wp-admin/admin.php?page=dashboard-license | 3.25 | 34.91 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WPUser Certificate
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 13.93 ▼0.44 | 1.58 ▼0.18 | 40.67 ▼1.37 |
Dashboard /wp-admin | 2,227 ▲53 | 5.51 ▼0.07 | 108.85 ▲5.67 | 68.55 ▲23.55 |
Posts /wp-admin/edit.php | 2,219 ▲122 | 2.67 ▲0.56 | 44.64 ▲9.21 | 42.79 ▲5.53 |
Add New Post /wp-admin/post-new.php | 1,575 ▲47 | 21.53 ▼1.59 | 653.95 ▼49.93 | 88.98 ▲28.42 |
Media Library /wp-admin/upload.php | 1,507 ▲110 | 5.12 ▲0.96 | 103.23 ▼6.23 | 85.19 ▲35.44 |
WPUC /wp-admin/admin.php?page=dashboard-setups | 823 | 2.65 | 33.98 | 22.76 |
Courses /wp-admin/admin.php?page=dashboard-courses | 824 | 2.61 | 29.97 | 22.51 |
License /wp-admin/admin.php?page=dashboard-license | 841 | 2.51 | 29.70 | 22.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- dashboard_checklicense
- db_upgraded
- dashboardplugincertificate_serialkey
- can_compress_scripts
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wpuser-certificate/pages/templates/wpuc_login.php
- > /wp-content/plugins/wpuser-certificate/pages/templates/wpuc_dashboard.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpuser-certificate/pages/backendpages/includes/coursespage/singlecourse.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wpuser-certificate/pages/backendpages/includes/coursespage/courses.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_roles() in wp-content/plugins/wpuser-certificate/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpuser-certificate/functions/plugins_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_role() in wp-content/plugins/wpuser-certificate/functions/addclientrole.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpuser-certificate/main.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpuser-certificate/functions/addnewusersapi.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpuser-certificate/functions/addnewusers.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6, #7, #8 in wpuser-certificate/assets to your readme.txt
wpuser-certificate/main.php 85% from 13 tests
The main PHP file in "WPUser Certificate" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpuser-certificate.php" instead of "main.php")
- Domain Path: The domain path folder was not found ("/languages")
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 plugin1,558 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 330 | 94 | 1,059 |
CSS | 4 | 17 | 10 | 208 |
Sass | 1 | 42 | 2 | 191 |
JavaScript | 6 | 38 | 34 | 100 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/email.png | 0.66KB | 0.44KB | ▼ 32.89% |
images/dashboardcertificateicon.png | 1.13KB | 0.94KB | ▼ 16.74% |