Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.47ms] Passed 4 tests
Server-side resources used by NewPath WildApricotPress Add-on – Member Directory
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.18 ▼2.47 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.17 ▼16.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.69 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.46 ▼15.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.71 ▲3.75 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by NewPath WildApricotPress Add-on – Member Directory
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.22 ▼0.33 | 1.87 ▲0.14 | 39.77 ▼4.31 |
Dashboard /wp-admin | 2,198 ▲24 | 5.58 ▼0.07 | 92.20 ▲5.37 | 40.74 ▲2.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.03 | 40.37 ▲0.99 | 38.92 ▲2.85 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.28 ▼0.05 | 659.19 ▼36.93 | 50.92 ▼5.49 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.14 ▼0.03 | 110.16 ▲8.54 | 48.34 ▲2.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function WAWP\\Memdir_Block\\services\\plugin_dir_path() in wp-content/plugins/newpath-wildapricotpress-add-on-member-directory/services/WAService.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/newpath-wildapricotpress-add-on-member-directory/ContactsAPI.php:161
- > PHP Warning
Use of undefined constant HOUR_IN_SECONDS - assumed 'HOUR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/newpath-wildapricotpress-add-on-member-directory/services/CacheService.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: wildapricot, wild apricot, membership, membership directory
newpath-wildapricotpress-add-on-member-directory/wap-addon-member-directory.php 85% from 13 tests
The main file in "NewPath WildApricotPress Add-on – Member Directory" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("newpath-wildapricotpress-add-on-member-directory.php" instead of "wap-addon-member-directory.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
Success! There were no dangerous files found in this plugin47,836 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 38,459 |
JavaScript | 16 | 1,101 | 646 | 7,662 |
PHP | 20 | 423 | 490 | 1,545 |
Sass | 4 | 9 | 2 | 93 |
CSS | 4 | 11 | 26 | 77 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 24 | 21.82% |
▷ Public methods | 78 | 70.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 29.09% |
Functions | 18 | |
▷ Named functions | 9 | 50.00% |
▷ Anonymous functions | 9 | 50.00% |
Constants | 12 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 12 | 100.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin