Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼138.44ms] Passed 4 tests
Server-side resources used by Sel Staff
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.23 ▲0.51 | 42.79 ▲15.54 |
Dashboard /wp-admin | 3.54 ▲0.48 | 47.95 ▲0.87 |
Posts /wp-admin/edit.php | 3.59 ▲0.48 | 50.73 ▲5.65 |
Add New Post /wp-admin/post-new.php | 5.83 ▲0.40 | 91.92 ▼562.49 |
Media Library /wp-admin/upload.php | 3.42 ▲0.42 | 37.74 ▲2.20 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 3.48 | 30.39 |
Add New Staff /wp-admin/post-new.php?post_type=selt_staff | 3.59 | 55.14 |
All Staff /wp-admin/edit.php?post_type=selt_staff | 3.53 | 37.62 |
Group /wp-admin/edit-tags.php?taxonomy=selt_staff_group&post_type=selt_staff | 3.42 | 34.43 |
Server storage [IO: ▲0.16MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Sel Staff
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲191 | 16.42 ▲1.06 | 9.75 ▼1.72 | 50.21 ▲1.95 |
Dashboard /wp-admin | 3,050 ▲116 | 5.85 ▼0.07 | 144.86 ▼4.20 | 114.50 ▲6.86 |
Posts /wp-admin/edit.php | 2,832 ▲93 | 2.73 ▲0.03 | 87.33 ▲20.73 | 94.10 ▲6.69 |
Add New Post /wp-admin/post-new.php | 1,739 ▲67 | 18.43 ▼0.33 | 410.95 ▼32.09 | 105.12 ▼8.51 |
Media Library /wp-admin/upload.php | 1,898 ▲91 | 5.06 ▼0.06 | 151.70 ▲6.34 | 127.51 ▲3.13 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,320 | 2.12 | 57.28 | 81.52 |
Add New Staff /wp-admin/post-new.php?post_type=selt_staff | 3,123 | 9.06 | 230.29 | 144.35 |
All Staff /wp-admin/edit.php?post_type=selt_staff | 1,511 | 2.65 | 66.23 | 82.65 |
Group /wp-admin/edit-tags.php?taxonomy=selt_staff_group&post_type=selt_staff | 1,829 | 2.43 | 62.48 | 85.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sel-staff/inc/tgmpa/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sel-staff/templates/taxonomy-selt_staff_group.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sel-staff/inc/tgmpa/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sel-staff/templates/single-selt_staff.php:12
- > PHP Fatal error
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 Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: staff
sel-staff/plugin.php 77% from 13 tests
This is the main PHP file of "Sel Staff" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("sel-staff.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,209 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 665 | 1,858 | 2,209 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 48.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 101 | |
▷ Static methods | 5 | 4.95% |
▷ Public methods | 78 | 77.23% |
▷ Protected methods | 23 | 22.77% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin