Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.18ms] Passed 4 tests
This is a short check of server-side resources used by Staffer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 39.87 ▲2.74 |
Dashboard /wp-admin | 3.51 ▲0.21 | 46.51 ▲0.19 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 47.14 ▼5.99 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 83.40 ▼5.67 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 41.21 ▲2.80 |
Add New /wp-admin/post-new.php?post_type=staff | 3.56 | 49.63 |
All Profiles /wp-admin/edit.php?post_type=staff | 3.48 | 40.87 |
Departments /wp-admin/edit-tags.php?taxonomy=department&post_type=staff | 3.43 | 33.79 |
Staffer Options /wp-admin/options-general.php?page=staffer | 3.40 | 29.50 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
staffer |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Staffer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.57 ▼1.01 | 8.05 ▲6.37 | 50.37 ▲12.58 |
Dashboard /wp-admin | 2,245 ▲57 | 4.83 ▼0.18 | 106.61 ▲4.00 | 41.20 ▲0.91 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.04 ▲0.01 | 35.50 ▼0.08 | 32.38 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 23.54 ▲0.44 | 679.93 ▲6.46 | 55.30 ▲3.21 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.23 ▲0.02 | 100.65 ▼6.89 | 45.84 ▼1.33 |
Add New /wp-admin/post-new.php?post_type=staff | 2,502 | 7.78 | 175.80 | 69.57 |
All Profiles /wp-admin/edit.php?post_type=staff | 1,092 | 1.95 | 33.71 | 28.85 |
Departments /wp-admin/edit-tags.php?taxonomy=department&post_type=staff | 1,304 | 2.14 | 26.96 | 26.91 |
Staffer Options /wp-admin/options-general.php?page=staffer | 892 | 2.06 | 26.15 | 26.07 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- staffer
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: profile, business, staff directory, staff
staffer/load-staffer.php 92% from 13 tests
"Staffer" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("staffer.php" instead of "load-staffer.php")
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 detected1,245 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 302 | 553 | 877 |
Sass | 3 | 36 | 0 | 240 |
JavaScript | 1 | 27 | 0 | 93 |
SVG | 7 | 0 | 0 | 34 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin