Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/lh-profile-page/lh-profile-page.php+593
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.01MB] [CPU: ▼142.59ms] Passed 4 tests
Analyzing server-side resources used by LH Profile Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.65 ▼0.07 | 18.80 ▼3.62 |
Dashboard /wp-admin | 3.13 ▲0.08 | 47.00 ▼4.82 |
Posts /wp-admin/edit.php | 3.01 ▼0.09 | 30.71 ▼15.25 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 91.26 ▼546.67 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 34.05 ▼0.53 |
LH Profile Page /wp-admin/options-general.php?page=lh-profile-page/lh-profile-page.php | 3.05 | 31.24 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
lh_profile_page-options |
Browser metrics Passed 4 tests
Checking browser requirements for LH Profile Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.90 ▼0.03 | 13.44 ▲4.28 | 48.17 ▼1.42 |
Dashboard /wp-admin | 2,975 ▲41 | 6.12 ▲0.17 | 159.38 ▲9.38 | 104.89 ▼6.35 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 67.59 ▲2.41 | 87.91 ▼9.93 |
Add New Post /wp-admin/post-new.php | 3,690 ▲2,190 | 15.10 ▼3.43 | 488.36 ▲93.68 | 104.48 ▼4.56 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.00 | 152.16 ▼1.17 | 113.47 ▼0.78 |
LH Profile Page /wp-admin/options-general.php?page=lh-profile-page/lh-profile-page.php | 1,035 | 2.09 | 52.43 | 61.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-profile-page/lh-profile-page.php:631
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: meta, front-end, users, profile, frontend...
lh-profile-page/lh-profile-page.php Passed 13 tests
This is the main PHP file of "LH Profile Page" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
76 characters long description:
Enables a front end user profile page that can be updated from the front end
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin308 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 325 | 32 | 305 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 53.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 42.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 57.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin