Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ym-contact-display/ym-contact-display.php+142
Function create_function() is deprecated
Server metrics [RAM: ▼1.83MB] [CPU: ▼189.73ms] Passed 4 tests
Analyzing server-side resources used by YM Contact Display
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼1.03 | 3.47 ▼21.20 |
Dashboard /wp-admin | 1.82 ▼1.24 | 8.61 ▼34.31 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 3.94 ▼36.67 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.62 | 3.68 ▼666.72 |
Media Library /wp-admin/upload.php | 1.82 ▼1.18 | 5.31 ▼19.57 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ym_contact_display |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YM Contact Display
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.57 ▼0.15 | 6.61 ▼3.79 | 81.80 ▲9.59 |
Dashboard /wp-admin | 2,929 ▲37 | 6.12 ▼0.06 | 116.54 ▼13.78 | 168.11 ▼4.68 |
Posts /wp-admin/edit.php | 2,737 ▼3 | 3.23 ▲0.01 | 61.58 ▼16.22 | 132.75 ▼42.69 |
Add New Post /wp-admin/post-new.php | 3,807 ▲167 | 19.03 ▲3.96 | 428.50 ▼14.09 | 153.24 ▼11.63 |
Media Library /wp-admin/upload.php | 1,752 ▲3 | 5.48 ▼0.02 | 142.84 ▲1.37 | 186.31 ▼0.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/ym-contact-display/ym-contact-display.php+142
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 1 option in the database
- widget_ym_contact_display
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ym-contact-display/ym-contact-display.php:12
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: address display, contact display, contact address, address, contact
ym-contact-display/ym-contact-display.php Passed 13 tests
Analyzing the main PHP file in "YM Contact Display" version 1.0
74 characters long description:
Add contact display widget to show company name, address, phone, email etc
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
Everything looks great! No dangerous files found in this plugin123 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 10 | 123 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 7.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected