Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲4.02MB] [CPU: ▲24.41ms] Passed 4 tests
An overview of server-side resources used by Staff List
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.36 ▲1.89 | 53.45 ▲13.99 |
Dashboard /wp-admin | 8.03 ▲4.72 | 78.87 ▲30.33 |
Posts /wp-admin/edit.php | 8.16 ▲4.80 | 76.78 ▲31.30 |
Add New Post /wp-admin/post-new.php | 10.65 ▲4.76 | 115.97 ▲26.36 |
Media Library /wp-admin/upload.php | 7.95 ▲4.72 | 61.09 ▲26.94 |
Staff Templates /wp-admin/edit.php?post_type=cpt_staff_lst | 8.04 | 59.28 |
Staff Categories /wp-admin/edit-tags.php?taxonomy=tax_staff_member_cat&post_type=cpt_staff_lst_item | 7.99 | 57.88 |
Category Menus /wp-admin/edit.php?post_type=cpt_staff_lst_menu | 8.00 | 61.08 |
Groups /wp-admin/edit.php?post_type=cpt_staff_grps | 8.00 | 55.47 |
Admin /wp-admin/edit.php?post_type=cpt_staff_lst_item&page=abcfsl-admin-tabs | 7.95 | 56.43 |
Staff Members /wp-admin/edit.php?post_type=cpt_staff_lst_item | 8.04 | 58.12 |
Add New /wp-admin/post-new.php?post_type=cpt_staff_lst_item | 8.05 | 68.94 |
AZ Menus /wp-admin/edit.php?post_type=cpt_staff_az_menu | 8.00 | 56.52 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 426 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Staff List
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 14.35 ▼0.27 | 1.58 ▲0.12 | 38.26 ▼4.04 |
Dashboard /wp-admin | 2,273 ▲93 | 5.76 ▲0.09 | 96.75 ▲9.97 | 43.06 ▲0.19 |
Posts /wp-admin/edit.php | 2,182 ▲82 | 2.28 ▲0.29 | 40.91 ▲6.09 | 35.97 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,591 ▲63 | 23.25 ▲0.23 | 643.50 ▼12.14 | 37.01 ▼22.94 |
Media Library /wp-admin/upload.php | 1,478 ▲81 | 4.33 ▲0.03 | 96.71 ▲0.96 | 42.62 ▼0.76 |
Staff Templates /wp-admin/edit.php?post_type=cpt_staff_lst | 1,327 | 3.63 | 46.39 | 26.45 |
Staff Categories /wp-admin/edit-tags.php?taxonomy=tax_staff_member_cat&post_type=cpt_staff_lst_item | 1,520 | 3.33 | 42.06 | 31.28 |
Category Menus /wp-admin/edit.php?post_type=cpt_staff_lst_menu | 1,140 | 2.24 | 32.72 | 28.00 |
Groups /wp-admin/edit.php?post_type=cpt_staff_grps | 1,140 | 2.23 | 32.70 | 30.83 |
Admin /wp-admin/edit.php?post_type=cpt_staff_lst_item&page=abcfsl-admin-tabs | 1,055 | 3.21 | 39.28 | 27.47 |
Staff Members /wp-admin/edit.php?post_type=cpt_staff_lst_item | 1,430 | 3.53 | 45.85 | 30.55 |
Add New /wp-admin/post-new.php?post_type=cpt_staff_lst_item | 2,083 | 3.90 | 67.01 | 83.66 |
AZ Menus /wp-admin/edit.php?post_type=cpt_staff_az_menu | 1,140 | 2.35 | 32.94 | 31.85 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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)
Good news, no errors were detected
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
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/staff-list/admin/ajax-handlers.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/staff-list/admin/class-menu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/staff-list/library/abcfl-attr.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/staff-list/adminf/class-menu.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function abcfl_html_tag() in wp-content/plugins/staff-list/admin/columns.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/staff-list/admin/autil.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: employee directory, faculty directory, staff directory, church directory, team
staff-list/staff-list.php Passed 13 tests
The primary PHP file in "Staff List" version 1.7.3 is used by WordPress to initiate all plugin functionality
73 characters long description:
Easily create list of staff members. Add single pages, filters and menus.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin26,573 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 5,308 | 3,912 | 21,083 |
JavaScript | 13 | 680 | 950 | 2,805 |
CSS | 4 | 244 | 118 | 1,840 |
PO File | 1 | 373 | 388 | 845 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 27.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 149 | |
▷ Static methods | 1 | 0.67% |
▷ Public methods | 97 | 65.10% |
▷ Protected methods | 4 | 2.68% |
▷ Private methods | 48 | 32.21% |
Functions | 1,101 | |
▷ Named functions | 1,101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 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
253 PNG files occupy 0.26MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/32-70/home.png | 0.66KB | 0.52KB | ▼ 21.48% |
images/birthdays-layout-a-title.png | 0.33KB | 0.17KB | ▼ 49.26% |
images/48-50/email.png | 1.05KB | 0.67KB | ▼ 36.09% |
images/32-70/youtube.png | 0.83KB | 0.58KB | ▼ 30.28% |
images/32-70/facebook.png | 0.69KB | 0.50KB | ▼ 28.49% |