Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.32MB] [CPU: ▲1.31ms] Passed 4 tests
A check of server-side resources used by Sama member registration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 42.21 ▲4.83 |
Dashboard /wp-admin | 3.68 ▲0.33 | 46.27 ▼11.23 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 48.13 ▲4.48 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 94.01 ▲7.64 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 40.21 ▲7.17 |
Setting /wp-admin/admin.php?page=sama_settings | 3.73 | 50.26 |
Members list /wp-admin/admin.php?page=sama_members | 3.59 | 35.56 |
Dashboard /wp-admin/admin.php?page=sama_options | 3.51 | 35.71 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sama_members |
wp_sama_members_subscription |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Sama member registration: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲231 | 14.00 ▼0.38 | 7.62 ▲5.95 | 38.24 ▼5.89 |
Dashboard /wp-admin | 2,244 ▲56 | 5.93 ▲0.05 | 100.93 ▼11.46 | 70.88 ▲32.44 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.22 ▲0.20 | 33.92 ▼4.19 | 29.71 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,721 ▲207 | 25.17 ▲7.64 | 697.80 ▼4.29 | 32.76 ▼24.71 |
Media Library /wp-admin/upload.php | 1,505 ▲117 | 4.33 ▲0.12 | 104.58 ▲3.98 | 83.05 ▲34.71 |
Setting /wp-admin/admin.php?page=sama_settings | 5,759 | 17.90 | 510.86 | 182.13 |
Members list /wp-admin/admin.php?page=sama_members | 916 | 1.81 | 25.85 | 23.92 |
Dashboard /wp-admin/admin.php?page=sama_options | 1,049 | 1.97 | 27.00 | 29.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_sama_members
- wp_sama_members_subscription
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
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
Please fix the following
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sama-member-registration/deactivate.php
- > /wp-content/plugins/sama-member-registration/views/accept-membership.php
- > /wp-content/plugins/sama-member-registration/views/new-membership.php
- > /wp-content/plugins/sama-member-registration/views/reject-membership.php
- > /wp-content/plugins/sama-member-registration/views/dashboard-payment.php
- > /wp-content/plugins/sama-member-registration/views/membership-expire-soon.php
- > /wp-content/plugins/sama-member-registration/activate.php
- > /wp-content/plugins/sama-member-registration/views/payment-pending-membership.php
- > /wp-content/plugins/sama-member-registration/views/suspend-membership.php
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: suspend_members in wp-content/plugins/sama-member-registration/views/suspend-membership.php on line 13
- > PHP Notice
Undefined variable: reject_members in wp-content/plugins/sama-member-registration/views/reject-membership.php on line 12
- > PHP Notice
Undefined variable: subscriptions in wp-content/plugins/sama-member-registration/views/membership-expire-soon.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sama-member-registration/controllers/class-sama-registers.php:29
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sama-member-registration/views/payment-pending-membership.php on line 13
- > PHP Notice
Undefined variable: pending_members in wp-content/plugins/sama-member-registration/views/payment-pending-membership.php on line 13
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sama-member-registration/views/accept-membership.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sama-member-registration/models/class-sama-cron.php:8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sama-member-registration/views/new-membership.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sama-member-registration/samagikaya.php:17
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: membership, user profile, registration, registration form, login form...
sama-member-registration/samagikaya.php 92% from 13 tests
The main PHP file in "Sama member registration" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sama-member-registration.php" instead of "samagikaya.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin6,351 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 726 | 169 | 3,143 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 3 | 49 | 11 | 277 |
JavaScript | 2 | 50 | 22 | 200 |
Markdown | 1 | 22 | 0 | 48 |
YAML | 1 | 3 | 4 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 35 | 49.30% |
▷ Public methods | 71 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 2.11KB | 0.43KB | ▼ 79.36% |