84% abmex-checkout

Code Review | Abmex Checkout

WordPress plugin Abmex Checkout scored84%from 54 tests.

About plugin

  • Plugin page: abmex-checkout
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2023
  • Latest release: Mar 8, 2023
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: abmex123 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /243 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.09ms] Passed 4 tests

A check of server-side resources used by Abmex Checkout
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.09 ▼5.59
Dashboard /wp-admin3.32 ▲0.0250.36 ▲0.43
Posts /wp-admin/edit.php3.37 ▲0.0249.50 ▲0.90
Add New Post /wp-admin/post-new.php5.90 ▲0.02107.63 ▲4.74
Media Library /wp-admin/upload.php3.24 ▲0.0239.19 ▼0.08

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Abmex Checkout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.141.74 ▼0.4248.02 ▲3.91
Dashboard /wp-admin2,221 ▲185.80 ▲0.90100.44 ▼19.6242.04 ▲0.71
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0137.98 ▼1.9637.03 ▼0.78
Add New Post /wp-admin/post-new.php1,546 ▲1522.92 ▼0.14610.42 ▼80.6468.09 ▲11.17
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.04103.82 ▼14.3949.46 ▲0.06

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 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/abmex-checkout/abmex-checkout-wc.php:239

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

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: checkout, dropshipping checkout, checkout transparente, abmex, onepage checkout

abmex-checkout/abmex-checkout-wc.php 92% from 13 tests

Analyzing the main PHP file in "Abmex Checkout" version 1.0.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("abmex-checkout.php" instead of "abmex-checkout-wc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected163 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13442163

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin