Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.23ms] Passed 4 tests
Server-side resources used by Profile Directory - Filter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.65 ▼1.72 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.54 ▼5.18 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.13 ▼4.70 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.14 ▼17.32 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.57 ▲0.14 |
Add New /wp-admin/post-new.php?post_type=pdfi-profile | 3.37 | 47.56 |
Settings /wp-admin/edit.php?post_type=pdfi-profile&page=pdfi-settings | 3.23 | 28.39 |
All Profile /wp-admin/edit.php?post_type=pdfi-profile | 3.31 | 33.17 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
pdfi_options |
Browser metrics Passed 4 tests
A check of browser resources used by Profile Directory - Filter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.59 ▼0.70 | 9.79 ▲7.93 | 42.32 ▼2.83 |
Dashboard /wp-admin | 2,237 ▲52 | 4.81 ▼0.07 | 114.14 ▼2.23 | 41.45 ▼5.56 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.02 ▲0.02 | 34.57 ▲0.47 | 35.65 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,572 ▲55 | 22.88 ▼0.68 | 668.00 ▼0.85 | 56.80 ▼6.67 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.19 ▲0.02 | 97.41 ▼1.34 | 45.54 ▲3.15 |
Add New /wp-admin/post-new.php?post_type=pdfi-profile | 2,203 | 7.18 | 152.26 | 67.16 |
Settings /wp-admin/edit.php?post_type=pdfi-profile&page=pdfi-settings | 969 | 2.06 | 25.16 | 28.65 |
All Profile /wp-admin/edit.php?post_type=pdfi-profile | 1,086 | 1.96 | 29.67 | 30.24 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/codedropz-filter-profile-directory/templates/modal-content.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function pdfi_directory_class() in wp-content/plugins/codedropz-filter-profile-directory/templates/bootstrap-layout.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function pdfi_directory_class() in wp-content/plugins/codedropz-filter-profile-directory/templates/default-layout.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
codedropz-filter-profile-directory/profile-directory-filter.php 92% from 13 tests
The principal PHP file in "Profile Directory - Filter" v. 1.0.1 is loaded by WordPress automatically on each request
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 ("codedropz-filter-profile-directory.php" instead of "profile-directory-filter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,023 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 265 | 320 | 712 |
CSS | 2 | 34 | 29 | 187 |
JavaScript | 1 | 33 | 29 | 95 |
Markdown | 1 | 16 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 3 | 27.27% |
▷ Public methods | 8 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 27.27% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrow-right.png | 4.02KB | 0.35KB | ▼ 91.41% |