Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.25MB] [CPU: ▼15.15ms] Passed 4 tests
This is a short check of server-side resources used by Gym Studio Membership Management
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.59 ▼1.41 |
Dashboard /wp-admin | 3.33 ▲0.03 | 42.98 ▼5.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.72 ▲1.21 |
Add New Post /wp-admin/post-new.php | 4.82 ▼1.06 | 48.08 ▼51.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 31.88 ▼1.56 |
Membership Management /wp-admin/options-general.php?page=my-setting-admin | 3.22 | 31.55 |
Server storage [IO: ▲0.46MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_fitsoft |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
fitsoft_membership_plugin_version |
Browser metrics Passed 4 tests
Gym Studio Membership Management: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,044 ▲298 | 14.45 ▲0.12 | 17.97 ▲16.18 | 36.47 ▼1.60 |
Dashboard /wp-admin | 2,244 ▲56 | 5.00 ▼0.91 | 103.15 ▲2.35 | 37.36 ▼7.95 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.32 ▲0.28 | 34.67 ▼1.02 | 32.45 ▼1.70 |
Add New Post /wp-admin/post-new.php | 6,213 ▲4,694 | 19.06 ▼4.02 | 847.88 ▲180.75 | 38.47 ▼26.84 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.50 ▲0.29 | 97.24 ▼1.97 | 41.77 ▼6.43 |
Membership Management /wp-admin/options-general.php?page=my-setting-admin | 859 | 1.98 | 29.72 | 25.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_fitsoft
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- fitsoft_membership_plugin_version
- can_compress_scripts
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)
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gym-studio-membership-management/membership-management-common.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gym-studio-membership-management/membership-management-buttons.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gym-studio-membership-management/membership-management.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gym-studio-membership-management/membership-management-options.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=my-setting-admin
- > Network (severe)
var/www/wordpress/wp-content/plugins/gym-studio-membership-management//fitsoftsettingopt-plugin.js?ver=1.0.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
gym-studio-membership-management/membership-management.php 77% from 13 tests
The principal PHP file in "Gym Studio Membership Management" v. 1.0.9 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gym-studio-membership-management.php" instead of "membership-management.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 346 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,555 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 356 | 182 | 1,343 |
JavaScript | 5 | 41 | 32 | 212 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 82.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 6.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 71.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 28.12% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.24MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
block/img/monthlycalendar.png | 58.83KB | 26.91KB | ▼ 54.27% |
editorbtn/fsmemberlogin.png | 1.34KB | 0.51KB | ▼ 61.56% |
images/accountbtn.png | 13.45KB | 4.22KB | ▼ 68.65% |
block/img/login.png | 16.24KB | 6.66KB | ▼ 58.98% |
images/cpbtn.png | 9.70KB | 2.78KB | ▼ 71.29% |