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
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼308.70ms] Passed 4 tests
A check of server-side resources used by CRM Memberships
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.14 | 57.45 ▲7.43 |
Dashboard /wp-admin | 3.54 ▲0.13 | 32.21 ▼1.93 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 37.72 ▼9.64 |
Add New Post /wp-admin/post-new.php | 7.33 ▲0.36 | 88.53 ▼1,219.06 |
Media Library /wp-admin/upload.php | 3.43 ▲0.14 | 22.37 ▼4.17 |
Access Tags /wp-admin/admin.php?page=add-new-tag | 3.44 | 25.38 |
Subscribers /wp-admin/admin.php?page=subscribers | 3.53 | 36.27 |
Settings /wp-admin/admin.php?page=ntzcrm-settings | 3.49 | 27.86 |
Publication Wizard /wp-admin/admin.php?page=add-publication-wizard | 3.46 | 25.78 |
Publications /wp-admin/admin.php?page=publications | 3.43 | 27.99 |
Getting Started /wp-admin/admin.php?page=getting-started | 3.39 | 23.54 |
Server storage [IO: ▲1.17MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 104 new files
Database: 6 new tables, no new options
New tables |
---|
wp_ntzcrm_user_activites |
wp_ntzcrm_post_tags |
wp_ntzcrm_user_logs |
wp_ntzcrm_membership_tags |
wp_ntzcrm_temp_tags |
wp_ntzcrm_user_tags |
Browser metrics Passed 4 tests
A check of browser resources used by CRM Memberships
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,894 ▲140 | 16.47 ▲0.86 | 9.66 ▲3.96 | 2.46 ▼0.29 |
Dashboard /wp-admin | 2,906 ▲45 | 6.73 ▲0.56 | 119.32 ▼16.41 | 179.10 ▲21.27 |
Posts /wp-admin/edit.php | 2,704 ▲19 | 3.31 ▲0.08 | 69.08 ▼0.35 | 155.52 ▼39.90 |
Add New Post /wp-admin/post-new.php | 1,861 ▲151 | 14.51 ▼6.23 | 317.06 ▼134.50 | 173.11 ▲6.21 |
Media Library /wp-admin/upload.php | 1,767 ▲64 | 6.06 ▲0.55 | 128.03 ▼21.18 | 191.20 ▲4.37 |
Access Tags /wp-admin/admin.php?page=add-new-tag | 1,412 | 2.86 | 55.66 | 134.50 |
Subscribers /wp-admin/admin.php?page=subscribers | 1,351 | 2.73 | 55.05 | 120.55 |
Settings /wp-admin/admin.php?page=ntzcrm-settings | 2,252 | 9.19 | 160.73 | 205.09 |
Publication Wizard /wp-admin/admin.php?page=add-publication-wizard | 1,483 | 4.72 | 70.56 | 162.54 |
Publications /wp-admin/admin.php?page=publications | 1,293 | 2.76 | 55.49 | 119.02 |
Getting Started /wp-admin/admin.php?page=getting-started | 1,377 | 2.72 | 54.24 | 134.57 |
Uninstaller [IO: ▲0.15MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 6 tables in the database
- wp_ntzcrm_post_tags
- wp_ntzcrm_user_activites
- wp_ntzcrm_user_logs
- wp_ntzcrm_temp_tags
- wp_ntzcrm_user_tags
- wp_ntzcrm_membership_tags
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/crm-memberships/includes/admin/admin-page.php
- > /wp-content/plugins/crm-memberships/includes/admin/getting-started.php
- > /wp-content/plugins/crm-memberships/includes/admin/ntzcrm-header.php
- > /wp-content/plugins/crm-memberships/includes/admin/add-tag-form.php
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/crm-memberships/includes/admin/publications.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/crm-memberships/includes/admin/publications.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/crm-memberships/includes/admin/subscribers.php on line 3
- > PHP Warning
Use of undefined constant NTZCRM_PLUGIN_URL - assumed 'NTZCRM_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/crm-memberships/includes/admin/ntzcrm-header.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/crm-memberships/includes/admin/subscribers.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/crm-memberships/includes/admin/publications.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/crm-memberships/includes/admin/usermeta.php:2
- > PHP Warning
Use of undefined constant NTZCRM_PLUGIN_URL - assumed 'NTZCRM_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/crm-memberships/includes/admin/getting-started.php on line 57
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/crm-memberships/includes/admin/postmeta.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/crm-memberships/includes/view/login.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 80% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add a description for screenshot #8 in crm-memberships/assets to your readme.txt
crm-memberships/ntzcrm-memberships.php 62% from 13 tests
The primary PHP file in "CRM Memberships" version 1.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 252 characters long)
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("#")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("crm-memberships.php" instead of "ntzcrm-memberships.php")
- Domain Path: Please prefix the domain path with a forward slash character ("/#")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin15,083 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 2,590 | 803 | 9,883 |
PHP | 20 | 407 | 204 | 3,434 |
CSS | 4 | 109 | 49 | 1,757 |
Markdown | 1 | 7 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 64.83 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 62 | 66.67% |
▷ Public methods | 92 | 98.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.08% |
Functions | 48 | |
▷ Named functions | 48 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.34MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/crm-memberships-logo.png | 3.44KB | 1.95KB | ▼ 43.20% |
images/pub-access-enabled.png | 10.00KB | 4.38KB | ▼ 56.24% |
images/set-memb-login-menu.png | 169.34KB | 51.73KB | ▼ 69.45% |
images/pub-access-disabled.png | 8.22KB | 3.34KB | ▼ 59.34% |
images/get-start1.png | 40.03KB | 14.06KB | ▼ 64.88% |