Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.61MB] [CPU: ▼15.44ms] Passed 4 tests
This is a short check of server-side resources used by LDW Mobile Contact Optimizer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.57 ▼4.95 |
Dashboard /wp-admin | 3.38 ▲0.07 | 55.84 ▲1.48 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 57.74 ▲10.80 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.66 | 40.54 ▼63.34 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 41.92 ▲5.04 |
LDW Mobile Contact Optimizer /wp-admin/options-general.php?page=ldw-mco | 3.25 | 37.86 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ldw_mco |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by LDW Mobile Contact Optimizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲155 | 13.72 ▼0.46 | 8.88 ▲6.54 | 40.00 ▼2.02 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.09 | 84.95 ▼5.98 | 39.43 ▼1.73 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.01 | 38.98 ▲2.11 | 37.46 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.02 ▲0.06 | 692.14 ▼36.15 | 57.39 ▲0.77 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.19 ▼0.02 | 108.15 ▼25.79 | 47.12 ▲1.33 |
LDW Mobile Contact Optimizer /wp-admin/options-general.php?page=ldw-mco | 1,283 | 2.41 | 61.40 | 33.90 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- ldw_mco
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ldw-mco
- > Notice in wp-content/plugins/ldw-mobile-contact-optimizer/index.php+137
Undefined index: custom
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
Please 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 add_action() in wp-content/plugins/ldw-mobile-contact-optimizer/index.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: contact, e-mail, mobile, phone, footer...
ldw-mobile-contact-optimizer/index.php 85% from 13 tests
The main PHP file in "LDW Mobile Contact Optimizer" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("ldw-mobile-contact-optimizer.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin206 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 20 | 198 |
JavaScript | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.86 |
▷ 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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lamour-du-web.png | 15.67KB | 9.02KB | ▼ 42.48% |