Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.11ms] Passed 4 tests
Analyzing server-side resources used by Ultimate Member Profile Tabs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.08 ▼8.87 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.44 ▲5.41 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.07 ▲4.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.59 ▼10.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.19 ▼5.11 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Ultimate Member Profile Tabs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.37 ▼0.93 | 2.00 ▲0.01 | 42.21 ▼5.55 |
Dashboard /wp-admin | 2,209 ▲21 | 5.80 ▼0.06 | 104.40 ▼12.55 | 38.81 ▼13.83 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.04 | 43.73 ▲7.55 | 36.56 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 17.61 ▼0.02 | 666.95 ▼32.14 | 56.39 ▼0.78 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.27 ▲0.06 | 97.83 ▼6.21 | 42.54 ▼0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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)
Everything seems fine, however 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
The following issues need your attention
- 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/profile-tabs-for-ultimate-member/init.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/profile-tabs-for-ultimate-member/includes/cmb_field_select2/cmb-field-select2.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profile-tabs-for-ultimate-member/includes/cmb2/init.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/profile-tabs-for-ultimate-member/pp-tabs.php:13
- > PHP Fatal error
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 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
profile-tabs-for-ultimate-member/pp-tabs.php 92% from 13 tests
This is the main PHP file of "Ultimate Member Profile Tabs" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("profile-tabs-for-ultimate-member.php" instead of "pp-tabs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected12,696 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 1,148 | 1,043 | 4,940 |
JavaScript | 51 | 828 | 728 | 3,967 |
PHP | 21 | 1,077 | 2,253 | 3,415 |
JSON | 5 | 0 | 0 | 159 |
PO File | 1 | 29 | 32 | 88 |
Markdown | 1 | 27 | 0 | 72 |
Bourne Shell | 1 | 24 | 0 | 55 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 38.76 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 233 | |
▷ Static methods | 22 | 9.44% |
▷ Public methods | 221 | 94.85% |
▷ Protected methods | 9 | 3.86% |
▷ Private methods | 3 | 1.29% |
Functions | 27 | |
▷ Named functions | 24 | 88.89% |
▷ Anonymous functions | 3 | 11.11% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 89.27KB | 26.50KB | ▼ 70.32% |
assets/screenshot-2.png | 24.16KB | 7.77KB | ▼ 67.82% |
includes/cmb_field_select2/js/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
includes/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |