Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/stafflist/stafflist.php+40
Undefined variable: wpdb
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.66ms] Passed 4 tests
An overview of server-side resources used by StaffList
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.94 ▲7.36 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.00 ▼3.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.35 ▼4.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 79.59 ▼9.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.87 ▲6.57 |
Server storage [IO: ▲0.26MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_stafflist |
wp_stafflist_meta |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for StaffList
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲157 | 13.55 ▼0.70 | 9.75 ▲8.16 | 44.98 ▲5.98 |
Dashboard /wp-admin | 2,212 ▲32 | 5.70 ▲0.08 | 81.15 ▼2.65 | 72.12 ▲30.15 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.33 ▲0.37 | 35.38 ▼5.51 | 34.69 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.06 ▼0.01 | 760.73 ▲125.35 | 37.08 ▼14.07 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.21 ▼0.00 | 97.14 ▼6.10 | 66.95 ▲23.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/stafflist/stafflist.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
6 plugin tags: directory, faculty, phonebook, personnel, rubrik...
stafflist/stafflist.php Passed 13 tests
The primary PHP file in "StaffList" version 3.2.1 is used by WordPress to initiate all plugin functionality
39 characters long description:
A super simplified staff directory tool
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,356 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 541 | 790 | 3,327 |
CSS | 2 | 51 | 63 | 743 |
JavaScript | 4 | 35 | 86 | 273 |
SVG | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 110.25 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 5.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 12 | 13.19% |
▷ Public methods | 63 | 69.23% |
▷ Protected methods | 28 | 30.77% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 62 | |
▷ Global constants | 3 | 4.84% |
▷ Class constants | 59 | 95.16% |
▷ Public constants | 59 | 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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/bulcclub.png | 2.74KB | 1.77KB | ▼ 35.19% |
img/admin_icon.png | 0.51KB | 0.43KB | ▼ 15.61% |
img/edit.png | 1.08KB | 0.29KB | ▼ 73.67% |
img/okay.png | 1.02KB | 0.14KB | ▼ 86.63% |