Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.40MB] [CPU: ▼142.88ms] Passed 4 tests
Analyzing server-side resources used by Member Directory and Contact Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.22 ▲0.50 | 41.96 ▲14.60 |
Dashboard /wp-admin | 3.44 ▲0.39 | 48.04 ▼6.31 |
Posts /wp-admin/edit.php | 3.56 ▲0.45 | 56.28 ▲9.96 |
Add New Post /wp-admin/post-new.php | 5.80 ▲0.37 | 100.07 ▼587.90 |
Media Library /wp-admin/upload.php | 3.38 ▲0.38 | 46.74 ▲12.75 |
Positions /wp-admin/edit-tags.php?taxonomy=member_category&post_type=member | 3.38 | 36.17 |
Sort Positions /wp-admin/edit.php?post_type=member&page=pta_member_sort | 3.45 | 35.40 |
All Members /wp-admin/edit.php?post_type=member | 3.51 | 40.83 |
Options /wp-admin/edit.php?post_type=member&page=pta_member_settings | 3.45 | 31.52 |
New Member /wp-admin/post-new.php?post_type=member | 3.57 | 58.07 |
Server storage [IO: ▲0.45MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 2 new options
New WordPress options |
---|
pta_member_directory_version |
pta_directory_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Member Directory and Contact Form
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,739 ▲167 | 16.32 ▲0.74 | 11.80 ▲3.40 | 50.84 ▼0.60 |
Dashboard /wp-admin | 3,017 ▲86 | 5.93 ▼0.00 | 144.39 ▼13.35 | 149.69 ▲32.00 |
Posts /wp-admin/edit.php | 2,808 ▲69 | 2.73 ▼0.11 | 71.04 ▼3.08 | 96.90 ▼8.00 |
Add New Post /wp-admin/post-new.php | 1,718 ▲35 | 18.70 ▲0.04 | 405.50 ▲9.08 | 118.56 ▲2.17 |
Media Library /wp-admin/upload.php | 1,805 ▼2 | 4.98 ▼0.04 | 139.71 ▼27.41 | 150.57 ▲19.12 |
Positions /wp-admin/edit-tags.php?taxonomy=member_category&post_type=member | 1,780 | 2.37 | 60.49 | 92.75 |
Sort Positions /wp-admin/edit.php?post_type=member&page=pta_member_sort | 1,542 | 2.36 | 58.78 | 78.66 |
All Members /wp-admin/edit.php?post_type=member | 1,974 | 2.56 | 61.00 | 86.18 |
Options /wp-admin/edit.php?post_type=member&page=pta_member_settings | 2,611 | 3.12 | 76.21 | 121.01 |
New Member /wp-admin/post-new.php?post_type=member | 3,609 | 9.08 | 234.28 | 164.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- pta_member_directory_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pta-member-directory/output-filters.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pta-member-directory/includes/pta-display-directory.php:869
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/pta-member-directory/pta-member-directory.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pta-member-directory/includes/process-ajax.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5 in pta-member-directory/assets to your readme.txt
pta-member-directory/pta-member-directory.php Passed 13 tests
The main PHP script in "Member Directory and Contact Form" version 1.7.0 is automatically included on every request by WordPress
110 characters long description:
Member/Staff directory listing and management system with contact form. Uses custom post type and taxonomies.
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
Everything looks great! No dangerous files found in this plugin4,570 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 526 | 536 | 2,435 |
PHP | 7 | 170 | 344 | 2,104 |
JavaScript | 2 | 1 | 7 | 23 |
CSS | 2 | 1 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/users_16.png | 0.79KB | 0.74KB | ▼ 6.45% |
images/users_32.png | 1.65KB | 1.44KB | ▼ 12.88% |