Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▲1.37ms] Passed 4 tests
A check of server-side resources used by Mamurjor Employee Info
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 47.86 ▲9.65 |
Dashboard /wp-admin | 3.54 ▲0.20 | 51.31 ▼21.71 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 54.14 ▲8.50 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 108.00 ▲9.50 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 44.11 ▲9.19 |
Employee Info /wp-admin/admin.php?page=employee | 3.43 | 45.41 |
employee salary Print /wp-admin/admin.php?page=salaryprint | 3.43 | 45.56 |
Department /wp-admin/admin.php?page=department | 3.43 | 37.16 |
Designation /wp-admin/admin.php?page=designation | 3.43 | 38.66 |
employee salary /wp-admin/admin.php?page=salary | 3.43 | 37.47 |
Salary Grade /wp-admin/admin.php?page=sgrade | 3.43 | 36.70 |
Education Info /wp-admin/admin.php?page=edu | 3.43 | 38.30 |
Server storage [IO: ▲0.64MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_mamurjor_sgrade |
wp_monthly_salary |
wp_mamurjor_emp_edu |
wp_mamurjor_department |
wp_mamurjor_employee |
wp_mamurjor_designation |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Mamurjor Employee Info: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲208 | 13.62 ▼0.84 | 8.55 ▲6.46 | 42.64 ▼2.47 |
Dashboard /wp-admin | 2,274 ▲86 | 5.85 ▼0.02 | 111.33 ▼4.69 | 38.73 ▼7.23 |
Posts /wp-admin/edit.php | 2,160 ▲71 | 2.01 ▼0.00 | 41.42 ▲4.92 | 37.07 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,571 ▲52 | 17.71 ▼5.40 | 655.28 ▼13.24 | 50.40 ▼6.05 |
Media Library /wp-admin/upload.php | 1,462 ▲77 | 4.23 ▼0.07 | 94.62 ▼5.18 | 41.99 ▼2.88 |
Employee Info /wp-admin/admin.php?page=employee | 993 | 2.03 | 23.43 | 30.71 |
employee salary Print /wp-admin/admin.php?page=salaryprint | 927 | 2.05 | 24.51 | 24.79 |
Department /wp-admin/admin.php?page=department | 891 | 2.06 | 25.10 | 25.56 |
Designation /wp-admin/admin.php?page=designation | 888 | 2.06 | 24.45 | 26.76 |
employee salary /wp-admin/admin.php?page=salary | 977 | 2.06 | 23.53 | 29.42 |
Salary Grade /wp-admin/admin.php?page=sgrade | 904 | 2.04 | 22.80 | 26.40 |
Education Info /wp-admin/admin.php?page=edu | 909 | 2.06 | 25.13 | 30.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_mamurjor_designation
- wp_monthly_salary
- wp_mamurjor_emp_edu
- wp_mamurjor_employee
- wp_mamurjor_department
- wp_mamurjor_sgrade
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/mamurjor-employee-info/public/partials/mamurjor_employee_info-public-display.php
- > /wp-content/plugins/mamurjor-employee-info/admin/partials/mamurjor_employee_info-admin-display.php
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 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
mamurjor-employee-info/mamurjor_employee_info.php 85% from 13 tests
The primary PHP file in "Mamurjor Employee Info" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mamurjor-employee-info.php" instead of "mamurjor_employee_info.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected10,214 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,271 | 5,940 | 5,310 |
CSS | 10 | 376 | 236 | 3,580 |
PHP | 18 | 616 | 565 | 1,324 |
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.14 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin