Benchmarks
Plugin footprint 82% from 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.24MB] [CPU: ▼4.87ms] Passed 4 tests
This is a short check of server-side resources used by Simple Staff List
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 51.12 ▲5.17 |
Dashboard /wp-admin | 3.55 ▲0.24 | 44.94 ▼6.03 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 51.79 ▼3.62 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 82.95 ▼12.76 |
Media Library /wp-admin/upload.php | 3.47 ▲0.23 | 38.52 ▲2.92 |
Groups /wp-admin/edit-tags.php?taxonomy=staff-member-group&post_type=staff-member | 3.58 | 36.82 |
Options /wp-admin/edit.php?post_type=staff-member&page=staff-member-options | 3.46 | 33.65 |
Usage /wp-admin/edit.php?post_type=staff-member&page=staff-member-usage | 3.44 | 31.17 |
Templates /wp-admin/edit.php?post_type=staff-member&page=staff-member-template | 3.48 | 35.81 |
Add New /wp-admin/post-new.php?post_type=staff-member | 3.67 | 52.79 |
All Staff Members /wp-admin/edit.php?post_type=staff-member | 3.51 | 38.42 |
Order /wp-admin/edit.php?post_type=staff-member&page=staff-member-order | 3.45 | 33.82 |
Export /wp-admin/edit.php?post_type=staff-member&page=staff-member-export | 3.45 | 34.28 |
Server storage [IO: ▲0.27MB] [DB: ▲0.01MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- There were 1 file (1.19KB) illegally modified outside of "wp-content/plugins/simple-staff-list/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/simple-staff-list-custom.css
Filesystem: 57 new files
Database: no new tables, 20 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
_staff_listing_default_name_singular |
widget_recent-comments |
_staff_listing_default_formatted_tags |
_staff_listing_default_tag_string |
_staff_listing_default_slug |
_staff_listing_default_css |
db_upgraded |
_staff_listing_custom_slug |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Staff List
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲87 | 14.36 ▼0.35 | 1.73 ▼0.36 | 42.73 ▼2.57 |
Dashboard /wp-admin | 2,277 ▲100 | 5.64 ▼0.03 | 90.14 ▼7.31 | 39.30 ▼8.53 |
Posts /wp-admin/edit.php | 2,179 ▲79 | 1.99 ▼0.01 | 39.92 ▲2.79 | 38.09 ▲3.41 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 22.77 ▼0.44 | 686.98 ▲36.38 | 55.86 ▼16.05 |
Media Library /wp-admin/upload.php | 1,490 ▲96 | 4.26 ▲0.07 | 106.45 ▲10.39 | 47.54 ▲5.33 |
Groups /wp-admin/edit-tags.php?taxonomy=staff-member-group&post_type=staff-member | 1,350 | 2.12 | 26.93 | 29.95 |
Options /wp-admin/edit.php?post_type=staff-member&page=staff-member-options | 913 | 1.87 | 33.51 | 27.09 |
Usage /wp-admin/edit.php?post_type=staff-member&page=staff-member-usage | 946 | 2.03 | 32.45 | 32.48 |
Templates /wp-admin/edit.php?post_type=staff-member&page=staff-member-template | 1,022 | 1.88 | 23.94 | 30.50 |
Add New /wp-admin/post-new.php?post_type=staff-member | 2,427 | 7.36 | 159.48 | 71.21 |
All Staff Members /wp-admin/edit.php?post_type=staff-member | 1,172 | 2.15 | 31.16 | 28.50 |
Order /wp-admin/edit.php?post_type=staff-member&page=staff-member-order | 855 | 1.78 | 24.49 | 26.54 |
Export /wp-admin/edit.php?post_type=staff-member&page=staff-member-export | 901 | 1.78 | 24.32 | 24.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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 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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-staff-list/admin/partials/simple-staff-list-admin-display.php
- > /wp-content/plugins/simple-staff-list/admin/partials/simple-staff-list-admin-sidebar.php
- > /wp-content/plugins/simple-staff-list/public/partials/simple-staff-list-public-display.php
- 10× 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/simple-staff-list/includes/sslp-template-hooks.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-staff-list/admin/partials/simple-staff-list-order-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-staff-list/admin/partials/simple-staff-list-template-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-staff-list/admin/partials/simple-staff-list-export-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/simple-staff-list/public/templates/single-staff-member/staff-bio.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/simple-staff-list/public/templates/single-staff-member/staff-email.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-staff-list/admin/partials/simple-staff-list-options-display.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-staff-list/public/partials/simple-staff-list-shortcode-display.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-staff-list/admin/partials/simple-staff-list-usage-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-staff-list/includes/sslp-core-functions.php:69
- > 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 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
6 plugin tags: staff directory, employee, employees, staff list, employee list...
simple-staff-list/simple-staff-list.php Passed 13 tests
Analyzing the main PHP file in "Simple Staff List" version 2.2.5
70 characters long description:
A simple plugin to build and display a staff listing for your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,340 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 491 | 1,173 | 1,516 |
PO File | 2 | 148 | 153 | 519 |
CSS | 2 | 45 | 17 | 182 |
JavaScript | 1 | 19 | 4 | 70 |
SVG | 6 | 0 | 2 | 53 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 44 | 89.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.20% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/staff-list-icon.png | 0.82KB | 0.47KB | ▼ 42.29% |
admin/img/buytickets_Ticket.png | 19.73KB | 8.57KB | ▼ 56.55% |
admin/img/move-icon.png | 1.26KB | 0.28KB | ▼ 77.54% |
admin/img/staff-list-icon-lighter.png | 0.79KB | 0.47KB | ▼ 40.59% |