68% logo-or-image-replace

Code Review | Logo or Image Replace by mycore.global

WordPress plugin Logo or Image Replace by mycore.global scored68%from 54 tests.

About plugin

  • Plugin page: logo-or-image-rep...
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 18, 2019
  • Latest release: Aug 31, 2023
  • Number of updates: 24
  • Update frequency: every 69.1 days
  • Top authors: quantumcloud (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /6,214 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0644.59 ▲9.49
Dashboard /wp-admin3.39 ▲0.0851.14 ▲3.73
Posts /wp-admin/edit.php3.51 ▲0.1546.93 ▼3.40
Add New Post /wp-admin/post-new.php5.97 ▲0.0899.40 ▲10.03
Media Library /wp-admin/upload.php3.29 ▲0.0634.85 ▲3.13
Help /wp-admin/admin.php?page=qc-lpp-help3.2934.39
Settings /wp-admin/admin.php?page=qc-lpp-settings3.2935.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,037 ▲29115.10 ▲0.755.63 ▲3.8633.31 ▼7.17
Dashboard /wp-admin2,362 ▲1816.26 ▲0.61125.86 ▲23.3244.24 ▲2.16
Posts /wp-admin/edit.php2,298 ▲1983.52 ▲1.5075.50 ▲32.7348.77 ▲14.34
Add New Post /wp-admin/post-new.php1,548 ▲2123.69 ▲0.72744.66 ▲112.6057.58 ▲4.75
Media Library /wp-admin/upload.php1,429 ▲264.19 ▼0.1591.03 ▼7.7246.44 ▲4.56
Help /wp-admin/admin.php?page=qc-lpp-help9933.1437.3563.12
Settings /wp-admin/admin.php?page=qc-lpp-settings1,0493.0441.1425.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

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
446 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP79388383
JavaScript2221452
CSS11011

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 code0.25
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/image/replace_image.png24.70KB6.85KB▼ 72.26%