10% afterwoo-order-export-to-afterbuy

Code Review | AfterWoo - Order Export to Afterbuy

WordPress plugin AfterWoo - Order Export to Afterbuy scored10%from 54 tests.

About plugin

  • Plugin page: afterwoo-order-ex...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2018
  • Latest release: Jan 25, 2018
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: kutuco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /750 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/afterwoo-order-export-to-afterbuy/afterwoo-order-export.php+17
    include(wp-content/plugins/afterwoo-order-export-to-afterbuy//afterwoo_convert-country-iso-code.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.90MB] [CPU: ▼56.21ms] Passed 4 tests

This is a short check of server-side resources used by AfterWoo - Order Export to Afterbuy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.365.37 ▼33.20
Dashboard /wp-admin2.12 ▼1.236.20 ▼58.99
Posts /wp-admin/edit.php2.12 ▼1.245.32 ▼38.92
Add New Post /wp-admin/post-new.php2.12 ▼3.775.90 ▼93.73
Media Library /wp-admin/upload.php2.12 ▼1.116.49 ▼30.03
Afterbuy /wp-admin/options-general.php?page=awoo_settings2.124.97

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by AfterWoo - Order Export to Afterbuy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.25 ▼0.021.68 ▲0.0742.72 ▲4.81
Dashboard /wp-admin2,199 ▲215.63 ▼0.0990.96 ▼14.8738.39 ▲2.00
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0335.10 ▼3.9732.95 ▲1.23
Add New Post /wp-admin/post-new.php1,529 ▲123.35 ▲0.31601.42 ▼11.5070.27 ▲4.94
Media Library /wp-admin/upload.php1,407 ▲44.19 ▲0.0295.85 ▼6.9742.32 ▼2.25
Afterbuy /wp-admin/options-general.php?page=awoo_settings8512.0324.4030.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/afterwoo-order-export-to-afterbuy/afterwoo-order-export.php+17
    include(wp-content/plugins/afterwoo-order-export-to-afterbuy//afterwoo_convert-country-iso-code.php): failed to open stream: No such file or directory
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=awoo_settings
    • > Warning in wp-content/plugins/afterwoo-order-export-to-afterbuy/afterwoo-order-export.php+17
    include(wp-content/plugins/afterwoo-order-export-to-afterbuy//afterwoo_convert-country-iso-code.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=awoo_settings
    • > Warning in wp-content/plugins/afterwoo-order-export-to-afterbuy/afterwoo-order-export.php+17
    include(): Failed opening 'wp-content/plugins/afterwoo-order-export-to-afterbuy//afterwoo_convert-country-iso-code.php' for inclusion (include_path='.:/usr/share/php')

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/afterwoo-order-export-to-afterbuy/afterwoo-settings.php:179
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/afterwoo-order-export-to-afterbuy/afterwoo-order-export.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === afterwoo-order-export-to-afterbuy === )
You can take inspiration from this readme.txt

afterwoo-order-export-to-afterbuy/afterwoo-order-export.php 92% from 13 tests

The main file in "AfterWoo - Order Export to Afterbuy" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("afterwoo-order-export-to-afterbuy.php" instead of "afterwoo-order-export.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected533 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP58377533

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for 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 complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ 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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin