84% newpath-wildapricotpress-add-on-member-directory

Code Review | NewPath WildApricotPress Add-on – Member Directory

WordPress plugin NewPath WildApricotPress Add-on – Member Directory scored84%from 54 tests.

About plugin

  • Plugin page: newpath-wildapric...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2022
  • Latest release: Oct 5, 2022
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: asirota (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /221 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.18 ▼2.47
Dashboard /wp-admin3.31 ▼0.0447.17 ▼16.94
Posts /wp-admin/edit.php3.36 ▲0.0049.69 ▲0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.46 ▼15.41
Media Library /wp-admin/upload.php3.23 ▲0.0039.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.22 ▼0.331.87 ▲0.1439.77 ▼4.31
Dashboard /wp-admin2,198 ▲245.58 ▼0.0792.20 ▲5.3740.74 ▲2.74
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0340.37 ▲0.9938.92 ▲2.85
Add New Post /wp-admin/post-new.php1,526 ▼223.28 ▼0.05659.19 ▼36.9350.92 ▼5.49
Media Library /wp-admin/upload.php1,403 ▼04.14 ▼0.03110.16 ▲8.5448.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

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:
LanguageFilesBlank linesComment linesLines of code
JSON50038,459
JavaScript161,1016467,662
PHP204234901,545
Sass49293
CSS4112677

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 code0.35
Average class complexity18.67
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity3.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods110
▷ Static methods2421.82%
▷ Public methods7870.91%
▷ Protected methods00.00%
▷ Private methods3229.09%
Functions18
▷ Named functions950.00%
▷ Anonymous functions950.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.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