Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.28MB] [CPU: ▼151.83ms] Passed 4 tests
Server-side resources used by Awesome Employee List
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 32.19 ▲11.25 |
Dashboard /wp-admin | 3.13 ▲0.07 | 47.37 ▲0.29 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 44.61 ▲3.22 |
Add New Post /wp-admin/post-new.php | 4.11 ▼1.32 | 49.46 ▼602.21 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 31.44 ▼8.62 |
All Employee /wp-admin/edit.php?post_type=employee_list | 3.11 | 31.26 |
Add New /wp-admin/post-new.php?post_type=employee_list | 3.00 | 34.87 |
Employee Type /wp-admin/edit-tags.php?taxonomy=employee_type&post_type=employee_list | 3.07 | 32.90 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Awesome Employee List
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,866 ▲270 | 16.40 ▲0.65 | 19.44 ▲7.78 | 75.53 ▲29.47 |
Dashboard /wp-admin | 3,014 ▲80 | 6.16 ▼0.01 | 138.15 ▼29.96 | 111.49 ▼1.53 |
Posts /wp-admin/edit.php | 2,786 ▲47 | 2.75 ▲0.04 | 69.32 ▲0.94 | 90.44 ▲3.43 |
Add New Post /wp-admin/post-new.php | 1,532 ▼151 | 18.58 ▲0.01 | 371.82 ▼55.35 | 104.08 ▼25.41 |
Media Library /wp-admin/upload.php | 1,860 ▲53 | 5.08 ▲0.07 | 140.41 ▼14.95 | 117.73 ▼8.26 |
All Employee /wp-admin/edit.php?post_type=employee_list | 1,465 | 2.77 | 63.50 | 74.27 |
Add New /wp-admin/post-new.php?post_type=employee_list | 3,196 | 9.17 | 216.77 | 143.36 |
Employee Type /wp-admin/edit-tags.php?taxonomy=employee_type&post_type=employee_list | 1,790 | 2.57 | 58.58 | 81.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=employee_list
- > Notice in wp-content/plugins/awesome-employee-list/init.php+168
Undefined index: father
- > GET request to /wp-admin/post-new.php?post_type=employee_list
- > Notice in wp-content/plugins/awesome-employee-list/init.php+169
Undefined index: mother
- > GET request to /wp-admin/post-new.php?post_type=employee_list
- > Notice in wp-content/plugins/awesome-employee-list/init.php+170
Undefined index: gender
- > GET request to /wp-admin/post-new.php?post_type=employee_list
- > Notice in wp-content/plugins/awesome-employee-list/init.php+171
Undefined index: designation
- > GET request to /wp-admin/post-new.php?post_type=employee_list
- > Notice in wp-content/plugins/awesome-employee-list/init.php+173
Undefined index: skills
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-employee-list/init.php:12
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== awesome-employee-list ===
)
awesome-employee-list/init.php 92% from 13 tests
The principal PHP file in "Awesome Employee List" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("awesome-employee-list.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected327 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 98 | 7 | 199 |
CSS | 3 | 18 | 5 | 120 |
JavaScript | 2 | 3 | 5 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin