Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/faculty-and-staff-directory/faculty-staff-directory.php+388
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼60.04ms] Passed 4 tests
This is a short check of server-side resources used by Faculty and Staff Directory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.28 ▼38.47 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.49 ▼56.26 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.05 ▼43.76 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.84 ▼101.68 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.69 ▼29.60 |
FSDirectory /wp-admin/options-general.php?page=fsdirectory-options | 2.05 | 5.74 |
Categories /wp-admin/edit-tags.php?taxonomy=profile-category&post_type=facstaff | 2.05 | 7.65 |
Faculty and Staff Profiles /wp-admin/edit.php?post_type=facstaff | 2.05 | 4.86 |
Add New /wp-admin/post-new.php?post_type=facstaff | 2.05 | 5.88 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
fsdirectory_sortstyle |
widget_fsdirectory_widget |
fsdirectory_displaystyle |
fsdirectory_stylethumbnail |
widget_recent-posts |
can_compress_scripts |
fsdirectory_hidethumbnail |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Faculty and Staff Directory
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.28 ▼1.07 | 4.36 ▲2.56 | 43.92 ▲0.39 |
Dashboard /wp-admin | 2,232 ▲55 | 5.61 ▼0.03 | 87.68 ▼1.72 | 37.44 ▼1.12 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.02 ▲0.03 | 36.03 ▼1.55 | 32.31 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.13 ▼0.48 | 593.68 ▼68.95 | 54.26 ▲6.15 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.17 ▲0.07 | 97.77 ▼11.33 | 46.68 ▲4.82 |
FSDirectory /wp-admin/options-general.php?page=fsdirectory-options | 991 | 1.99 | 23.82 | 37.24 |
Categories /wp-admin/edit-tags.php?taxonomy=profile-category&post_type=facstaff | 1,311 | 2.12 | 30.73 | 31.52 |
Faculty and Staff Profiles /wp-admin/edit.php?post_type=facstaff | 1,142 | 1.98 | 31.13 | 27.04 |
Add New /wp-admin/post-new.php?post_type=facstaff | 2,543 | 7.74 | 169.47 | 69.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/faculty-and-staff-directory/faculty-staff-directory.php+388
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 11 options
- fsdirectory_displaystyle
- fsdirectory_stylethumbnail
- widget_recent-posts
- widget_fsdirectory_widget
- fsdirectory_hidethumbnail
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- fsdirectory_sortstyle
- ...
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
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=facstaff
- > Deprecated in wp-content/plugins/faculty-and-staff-directory/faculty-staff-directory.php+388
Function create_function() is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=facstaff
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in fsdirectory_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=fsdirectory-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=fsdirectory-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faculty-and-staff-directory/admin/facultystaff-admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post() in wp-content/plugins/faculty-and-staff-directory/display-templates/facstaff-template-dual.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post() in wp-content/plugins/faculty-and-staff-directory/display-templates/facstaff-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/faculty-and-staff-directory/single-facstaff.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post() in wp-content/plugins/faculty-and-staff-directory/display-templates/facstaff-template-triple.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/faculty-and-staff-directory/archive-facstaff.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/faculty-and-staff-directory/display-templates/facstaff-category-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post() in wp-content/plugins/faculty-and-staff-directory/display-templates/facstaff-template-list.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: directory, staff, faculty, university
faculty-and-staff-directory/faculty-staff-directory.php 92% from 13 tests
Analyzing the main PHP file in "Faculty and Staff Directory" version 1.51
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("faculty-and-staff-directory.php" instead of "faculty-staff-directory.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
There were no executable files found in this plugin5,267 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 9 | 13 | 1,641 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
PHP | 9 | 142 | 52 | 804 |
SVG | 1 | 0 | 0 | 504 |
JavaScript | 1 | 11 | 38 | 8 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/profile-placeholder.png | 11.42KB | 8.46KB | ▼ 25.91% |