84% airpayvn

Code Review | Airpay.vn cho Woocommerce

WordPress plugin Airpay.vn cho Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: airpayvn
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2014
  • Latest release: Apr 27, 2014
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: hoangthien89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads


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
Installer ran successfully

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

A check of server-side resources used by Airpay.vn cho Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0436.53 ▼6.20
Dashboard /wp-admin3.34 ▲0.0453.67 ▲6.21
Posts /wp-admin/edit.php3.39 ▲0.0346.96 ▼1.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0398.63 ▲6.01
Media Library /wp-admin/upload.php3.26 ▲0.0334.58 ▲1.07

Server storage [IO: ▲0.01MB] [DB: ▲0.33MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Airpay.vn cho Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.73 ▼0.621.57 ▼0.4638.94 ▼7.50
Dashboard /wp-admin2,209 ▲604.86 ▼0.72107.30 ▲12.7443.53 ▲6.43
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0439.58 ▲5.2136.86 ▲0.81
Add New Post /wp-admin/post-new.php1,542 ▲1718.19 ▼5.24595.79 ▼69.5355.93 ▼4.75
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0297.20 ▲1.5940.89 ▼1.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/airpayvn/airpay.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: woocommerce, vietnamese, airpay

airpayvn/airpay.php 92% from 13 tests

"Airpay.vn cho Woocommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("airpayvn.php" instead of "airpay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected170 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin