84% newpath-wildapricot-press

Code Review | NewPath WildApricot Press

WordPress plugin NewPath WildApricot Press scored84%from 54 tests.

About plugin

  • Plugin page: newpath-wildapric...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 30, 2022
  • Latest release: Jun 26, 2023
  • Number of updates: 33
  • Update frequency: every 9.1 days
  • Top authors: asirota (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /852 total downloads

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.80MB] [CPU: ▼0.27ms] Passed 4 tests

This is a short check of server-side resources used by NewPath WildApricot Press
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.24 ▲0.7750.87 ▲5.67
Dashboard /wp-admin4.12 ▲0.8154.66 ▲2.77
Posts /wp-admin/edit.php4.17 ▲0.8157.67 ▲8.64
Add New Post /wp-admin/post-new.php6.72 ▲0.8389.99 ▼13.40
Media Library /wp-admin/upload.php4.04 ▲0.8141.87 ▲3.89
Settings /wp-admin/admin.php?page=wawp-wal-admin4.0240.24
Authorization /wp-admin/admin.php?page=wap-wa-auth-login4.0240.75
Licensing /wp-admin/admin.php?page=wap-licensing4.0241.17

Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 13 new options
New WordPress options
wawp_global_restriction_message
license-check-wawp
wawp_wal_name
db_upgraded
wawp_license_keys
show_activation_notice
wawp_disabled
widget_theysaidso_widget
widget_recent-posts
wawp_addons
...

Browser metrics Passed 4 tests

NewPath WildApricot Press: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲10013.18 ▼1.172.11 ▼0.5243.84 ▲2.02
Dashboard /wp-admin2,237 ▲525.91 ▲0.0797.98 ▼7.0339.53 ▼2.35
Posts /wp-admin/edit.php2,123 ▲342.03 ▼0.0139.28 ▼1.4434.79 ▼5.50
Add New Post /wp-admin/post-new.php1,540 ▲1223.07 ▲4.93626.40 ▼45.2257.28 ▼0.02
Media Library /wp-admin/upload.php1,419 ▲314.26 ▲0.0296.75 ▼17.2441.19 ▼6.64
Settings /wp-admin/admin.php?page=wawp-wal-admin7922.0825.5125.71
Authorization /wp-admin/admin.php?page=wap-wa-auth-login8812.0724.3729.90
Licensing /wp-admin/admin.php?page=wap-licensing7922.0725.0826.55

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
These items require your attention
  • The uninstall procedure has failed, leaving 13 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • wawp_global_restriction_message
    • widget_theysaidso_widget
    • license-check-wawp
    • show_activation_notice
    • wawp_addons
    • db_upgraded
    • wawp_disabled
    • wawp_license_keys
    • ...

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/newpath-wildapricot-press/plugin.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/newpath-wildapricot-press/uninstall.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: sso, membership, event management, events, wildapricot...

newpath-wildapricot-press/plugin.php 85% from 13 tests

The primary PHP file in "NewPath WildApricot Press" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("newpath-wildapricot-press.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected4,698 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP127602,2843,393
Markdown434601,176
CSS221593
JavaScript110636

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity31.67
▷ Minimum class complexity2.00
▷ Maximum class complexity199.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes15
▷ Abstract classes16.67%
▷ Concrete classes1493.33%
▷ Final classes00.00%
Methods186
▷ Static methods8445.16%
▷ Public methods14175.81%
▷ Protected methods42.15%
▷ Private methods4122.04%
Functions32
▷ Named functions2887.50%
▷ Anonymous functions412.50%
Constants72
▷ Global constants00.00%
▷ Class constants72100.00%
▷ Public constants72100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/membership-field-configuration.png50.67KB16.88KB▼ 66.69%
images/authorized-application-type.png15.32KB6.17KB▼ 59.76%
images/authoried-application-button.png9.80KB4.51KB▼ 53.95%
images/login-button-menu-location.png98.00KB24.35KB▼ 75.15%
images/application-detatails-api-keys.png32.42KB13.75KB▼ 57.57%