83% nut-goi-all-in-one-vnet-media

Code Review | Nút gọi All In One - Vnet Media

WordPress plugin Nút gọi All In One - Vnet Media scored83%from 54 tests.

About plugin

  • Plugin page: nut-goi-all-in-on...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.6.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2021
  • Latest release: Mar 8, 2021
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: nguynhuan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /672 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.62ms] Passed 4 tests

Analyzing server-side resources used by Nút gọi All In One - Vnet Media
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0237.95 ▼2.59
Dashboard /wp-admin3.32 ▲0.0246.45 ▼5.51
Posts /wp-admin/edit.php3.37 ▲0.0148.23 ▲0.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.30 ▼19.14
Media Library /wp-admin/upload.php3.24 ▲0.0140.16 ▲7.34

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Nút gọi All In One - Vnet Media: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12313.28 ▼1.112.47 ▲0.6039.70 ▼5.13
Dashboard /wp-admin2,222 ▲365.89 ▲0.89106.79 ▼9.8640.47 ▼6.45
Posts /wp-admin/edit.php2,108 ▲161.99 ▼0.0339.51 ▼5.6134.43 ▼1.37
Add New Post /wp-admin/post-new.php1,546 ▲223.00 ▲4.80765.64 ▲122.3562.31 ▲9.43
Media Library /wp-admin/upload.php1,404 ▲134.25 ▲0.06108.74 ▲3.6649.36 ▲2.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% 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 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nut-goi-all-in-one-vnet-media/Vnet-Callbutton.php:13

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 issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (You can embed source code from GitHub Gist.), #2 (You can write source code on your own blog post.)
You can look at the official readme.txt

nut-goi-all-in-one-vnet-media/Vnet-Callbutton.php 77% from 13 tests

The main PHP script in "Nút gọi All In One - Vnet Media" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 335 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("nut-goi-all-in-one-vnet-media.php" instead of "Vnet-Callbutton.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin889 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS3325616
PHP13030250
JavaScript18223

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
7 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
leavemassage.png5.89KB1.94KB▼ 66.98%
map.png33.81KB10.99KB▼ 67.49%
phone.png24.08KB9.51KB▼ 60.49%
zalo.png66.18KB22.17KB▼ 66.51%
messenger.png28.46KB11.16KB▼ 60.79%