77% lai-suat-ngan-hang-by-mecode

Code Review | LAI SUAT NGAN HANG BY MECODE

WordPress plugin LAI SUAT NGAN HANG BY MECODE scored77%from 54 tests.

About plugin

  • Plugin page: lai-suat-ngan-han...
  • Plugin version: 1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2020
  • Latest release: Jul 23, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dangngocbinh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /526 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.06ms] Passed 4 tests

A check of server-side resources used by LAI SUAT NGAN HANG BY MECODE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.86 ▲1.52
Dashboard /wp-admin3.34 ▲0.0350.13 ▼3.55
Posts /wp-admin/edit.php3.39 ▲0.0351.25 ▲0.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.12 ▼5.50
Media Library /wp-admin/upload.php3.26 ▲0.0337.03 ▲0.60
Lãi Suất Ngân Hàng /wp-admin/options-general.php?page=lsnh3.2333.67

Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/lai-suat-ngan-hang-by-mecode/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
lsnh_settings
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by LAI SUAT NGAN HANG BY MECODE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3314.73 ▲0.221.75 ▼0.3145.32 ▲2.34
Dashboard /wp-admin2,225 ▲224.87 ▼0.08109.07 ▼3.8642.88 ▲3.57
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.0439.46 ▼0.4136.76 ▲1.73
Add New Post /wp-admin/post-new.php1,557 ▲2418.37 ▼4.77605.32 ▼3.3674.20 ▲20.52
Media Library /wp-admin/upload.php1,404 ▲44.22 ▼0.0194.52 ▼15.1647.57 ▲0.05
Lãi Suất Ngân Hàng /wp-admin/options-general.php?page=lsnh8112.0222.5643.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • lsnh_settings
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/lai-suat-ngan-hang-by-mecode/public/views/form-tinh-lai.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/lai-suat-ngan-hang-by-mecode/public/views/form-tinh-lai.php on line 137
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lai-suat-ngan-hang-by-mecode/backend.php:3
    • > PHP Warning
      Use of undefined constant LSNH_PLUGIN_URL - assumed 'LSNH_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/lai-suat-ngan-hang-by-mecode/public/views/form-tinh-lai.php on line 114
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lai-suat-ngan-hang-by-mecode/backend.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/lai-suat-ngan-hang-by-mecode/public/views/form-tinh-lai.php on line 112

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 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
There were not plugin tags detected

lai-suat-ngan-hang-by-mecode/lai-suat-ngan-hang.php 77% from 13 tests

The entry point to "LAI SUAT NGAN HANG BY MECODE" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lai-suat-ngan-hang-by-mecode.php" instead of "lai-suat-ngan-hang.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,037 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS2852563
PHP37719301
JavaScript2487173

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/home.png8.89KB5.04KB▼ 43.29%