Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲3.24ms] Passed 4 tests
This is a short check of server-side resources used by Logo or Image Replace by mycore.global
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 44.59 ▲9.49 |
Dashboard /wp-admin | 3.39 ▲0.08 | 51.14 ▲3.73 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.93 ▼3.40 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 99.40 ▲10.03 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.85 ▲3.13 |
Help /wp-admin/admin.php?page=qc-lpp-help | 3.29 | 34.39 |
Settings /wp-admin/admin.php?page=qc-lpp-settings | 3.29 | 35.52 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
qc_lpp_selected_post_types |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Logo or Image Replace by mycore.global: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,037 ▲291 | 15.10 ▲0.75 | 5.63 ▲3.86 | 33.31 ▼7.17 |
Dashboard /wp-admin | 2,362 ▲181 | 6.26 ▲0.61 | 125.86 ▲23.32 | 44.24 ▲2.16 |
Posts /wp-admin/edit.php | 2,298 ▲198 | 3.52 ▲1.50 | 75.50 ▲32.73 | 48.77 ▲14.34 |
Add New Post /wp-admin/post-new.php | 1,548 ▲21 | 23.69 ▲0.72 | 744.66 ▲112.60 | 57.58 ▲4.75 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.19 ▼0.15 | 91.03 ▼7.72 | 46.44 ▲4.56 |
Help /wp-admin/admin.php?page=qc-lpp-help | 993 | 3.14 | 37.35 | 63.12 |
Settings /wp-admin/admin.php?page=qc-lpp-settings | 1,049 | 3.04 | 41.14 | 25.88 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- qc_lpp_selected_post_types
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/logo-or-image-replace/includes/help-template.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/logo-or-image-replace/includes/setings-page-template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logo-or-image-replace/class-free-upgrade-notice.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/logo-or-image-replace/image-replace-by-mycore.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logo-or-image-replace/includes/admin-menu.php:31
- > PHP Warning
Use of undefined constant qcld_lpp_asset_url - assumed 'qcld_lpp_asset_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/logo-or-image-replace/includes/help-template.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logo-or-image-replace/includes/settings-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
5 plugin tags: ai image, replace logo, different logo, blur image, image replace
logo-or-image-replace/image-replace-by-mycore.php 85% from 13 tests
The entry point to "Logo or Image Replace by mycore.global" version 1.1.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("logo-or-image-replace.php" instead of "image-replace-by-mycore.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .lnk - File Shortcut in Windows
- ☣ wp-content/plugins/logo-or-image-replace/includes/logo-or-image-replace - Shortcut.lnk
- .lnk - File Shortcut in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 93 | 88 | 383 |
JavaScript | 2 | 22 | 14 | 52 |
CSS | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/replace_image.png | 24.70KB | 6.85KB | ▼ 72.26% |