Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.08MB] [CPU: ▲0.59ms] Passed 4 tests
Server-side resources used by Staff Directory Plugin: Company Directory
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.02 | 34.13 ▼7.40 |
Dashboard /wp-admin | 4.38 ▲1.08 | 53.68 ▲5.37 |
Posts /wp-admin/edit.php | 4.50 ▲1.14 | 56.11 ▲7.86 |
Add New Post /wp-admin/post-new.php | 7.10 ▲1.21 | 89.93 ▼3.48 |
Media Library /wp-admin/upload.php | 4.31 ▲1.07 | 45.66 ▲11.86 |
Error /wp-admin/admin.php?page=company_directory_pro_error_page | 4.28 | 37.71 |
Settings /wp-admin/edit.php?post_type=staff-member&page=staff_dir-settings | 4.35 | 45.28 |
About Plugin /wp-admin/edit.php?post_type=staff-member_aloha | 4.17 | 34.33 |
Help & Instructions /wp-admin/edit.php?post_type=staff-member&page=company-directory-help | 4.35 | 43.24 |
Shortcode Generator /wp-admin/edit.php?post_type=staff-member&page=company-directory-shortcode-generator | 4.36 | 43.33 |
Upgrade To Pro /wp-admin/edit.php?post_type=staff-member&page=company-directory-upgrade-to-pro | 4.28 | 40.25 |
Privacy Notice /wp-admin/admin.php?page=company_directory_pro_privacy_notice | 4.28 | 49.39 |
Import & Export /wp-admin/edit.php?post_type=staff-member&page=company-directory-import-export | 4.29 | 41.35 |
Add New Staff Member /wp-admin/post-new.php?post_type=staff-member | 4.53 | 60.34 |
All Staff Members /wp-admin/edit.php?post_type=staff-member | 4.35 | 45.99 |
Server storage [IO: ▲2.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_gp_single_staff_widget |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_gp_staff_list_widget |
theysaidso_admin_options |
widget_gp_search_staff_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Staff Directory Plugin: Company Directory
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲201 | 13.52 ▼0.70 | 1.56 ▼0.95 | 37.01 ▼6.49 |
Dashboard /wp-admin | 2,333 ▲142 | 5.61 ▼0.28 | 93.09 ▼13.66 | 37.61 ▼6.81 |
Posts /wp-admin/edit.php | 2,208 ▲119 | 2.66 ▲0.60 | 48.02 ▲7.38 | 36.21 ▼1.92 |
Add New Post /wp-admin/post-new.php | 6,387 ▲4,873 | 23.65 ▲6.02 | 889.99 ▲211.77 | 54.61 ▼1.34 |
Media Library /wp-admin/upload.php | 1,516 ▲131 | 4.76 ▲0.52 | 89.45 ▼14.56 | 44.65 ▼0.23 |
Error /wp-admin/admin.php?page=company_directory_pro_error_page | 880 | 2.12 | 29.72 | 25.47 |
Settings /wp-admin/edit.php?post_type=staff-member&page=staff_dir-settings | 1,123 | 2.48 | 43.97 | 37.54 |
About Plugin /wp-admin/edit.php?post_type=staff-member_aloha | 28 | 0.44 | 0.09 | 4.01 |
Help & Instructions /wp-admin/edit.php?post_type=staff-member&page=company-directory-help | 985 | 2.38 | 36.73 | 30.18 |
Shortcode Generator /wp-admin/edit.php?post_type=staff-member&page=company-directory-shortcode-generator | 1,673 | 7.30 | 145.98 | 59.73 |
Upgrade To Pro /wp-admin/edit.php?post_type=staff-member&page=company-directory-upgrade-to-pro | 1,179 | 2.29 | 30.72 | 82.94 |
Privacy Notice /wp-admin/admin.php?page=company_directory_pro_privacy_notice | 888 | 2.14 | 29.90 | 23.19 |
Import & Export /wp-admin/edit.php?post_type=staff-member&page=company-directory-import-export | 1,154 | 2.60 | 44.28 | 44.81 |
Add New Staff Member /wp-admin/post-new.php?post_type=staff-member | 2,731 | 7.82 | 167.20 | 73.12 |
All Staff Members /wp-admin/edit.php?post_type=staff-member | 1,172 | 2.58 | 40.79 | 29.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- widget_gp_staff_list_widget
- widget_gp_search_staff_widget
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_gp_single_staff_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/staff-directory-pro/include/single_staff_widget.php:20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/staff-directory-pro/include/Company_Directory_Update_Notices.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/staff-directory-pro/templates/content-staff-member.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/staff-directory-pro/templates/content-staff-member.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/staff-directory-pro/blocks/single-staff.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/staff-directory-pro/blocks/staff-list.php:50
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/staff-directory-pro/templates/content-staff-member.php on line 5
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/staff-directory-pro/include/Company_Directory_Update_Notices.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function menu_page_url() in wp-content/plugins/staff-directory-pro/include/content/welcome.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/staff-directory-pro/include/staff_list_widget.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=staff-member_aloha
- > Network (severe)
wp-admin/edit.php?post_type=staff-member_aloha - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: directory, skills matrix, staff skills directory, staff skills, directory with contact form...
staff-directory-pro/staff-directory.php 92% from 13 tests
The principal PHP file in "Staff Directory Plugin: Company Directory" v. 4.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("staff-directory-pro.php" instead of "staff-directory.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
Good job! No executable or dangerous file extensions detected19,269 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,392 | 2,528 | 7,286 |
PO File | 17 | 1,449 | 1,993 | 4,842 |
CSS | 15 | 305 | 93 | 4,307 |
JavaScript | 10 | 277 | 301 | 1,762 |
SVG | 1 | 0 | 0 | 685 |
Markdown | 1 | 58 | 0 | 281 |
HTML | 1 | 0 | 0 | 106 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 37.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 377 | |
▷ Static methods | 9 | 2.39% |
▷ Public methods | 340 | 90.19% |
▷ Protected methods | 23 | 6.10% |
▷ Private methods | 14 | 3.71% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.50MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/check-mark.png | 25.95KB | 14.17KB | ▼ 45.41% |
assets/img/upgrade/custom-fields-editor-small.png | 32.44KB | 16.17KB | ▼ 50.16% |
assets/img/upgrade/staff-grid.png | 329.84KB | 83.33KB | ▼ 74.74% |
include/lib/GP_MegaSeptember/assets/img/lock.png | 1.28KB | 1.25KB | ▼ 2.52% |
assets/img/default-person.png | 27.00KB | 12.29KB | ▼ 54.49% |