Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼306.40ms] Passed 4 tests
Server-side resources used by Client Portal - Private user pages and login
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 55.12 ▲5.00 |
Dashboard /wp-admin | 3.47 ▲0.06 | 33.23 ▼1.14 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 39.26 ▲0.90 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 99.82 ▼1,214.99 |
Media Library /wp-admin/upload.php | 3.35 ▲0.04 | 25.53 ▼10.35 |
Client Portal Settings /wp-admin/users.php?page=client_portal_settings | 3.40 | 31.17 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cp_activation_date_time |
Browser metrics Passed 4 tests
A check of browser resources used by Client Portal - Private user pages and login
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲78 | 15.82 ▲0.17 | 6.09 ▼0.17 | 2.68 ▲0.40 |
Dashboard /wp-admin | 2,897 ▲36 | 6.11 ▲0.02 | 116.99 ▼19.02 | 157.55 ▼4.31 |
Posts /wp-admin/edit.php | 2,696 ▲8 | 3.23 ▼0.00 | 70.21 ▲4.28 | 141.97 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,714 ▲40 | 21.43 ▲0.19 | 456.61 ▲33.27 | 159.77 ▼6.59 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.54 ▼0.01 | 148.76 ▲6.34 | 189.09 ▼13.37 |
Client Portal Settings /wp-admin/users.php?page=client_portal_settings | 2,845 | 12.05 | 204.76 | 233.85 |
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
- Zombie WordPress options were found after uninstall: 1 option
- cp_activation_date_time
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/client-portal/index.php:31
- > 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 90% 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:
- Screenshots: These screenshots do not have images: #1 (Access the Private Page in the Users Listing in the admin area: screenshot-1.jpg), #2 (A Private Page edited using the Classic Editor: screenshot-2.jpg), #3 (A Private Page edited with the Gutenberg Editor: screenshot-3.jpg), #4 (The Settings Page for the Plugin: screenshot-3.jpg)
client-portal/index.php 85% from 13 tests
This is the main PHP file of "Client Portal - Private user pages and login" version 1.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("client-portal.php" instead of "index.php")
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 plugin588 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 124 | 180 | 536 |
CSS | 2 | 8 | 0 | 52 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 126.00 |
▷ Minimum class complexity | 126.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.58MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 73.30KB | 30.44KB | ▼ 58.47% |
assets/logo_landing_pb_2x_red.png | 4.55KB | 2.93KB | ▼ 35.61% |
screenshot-1.png | 158.18KB | 65.93KB | ▼ 58.32% |
screenshot-4.png | 171.83KB | 58.38KB | ▼ 66.02% |
screenshot-3.png | 187.61KB | 66.78KB | ▼ 64.41% |