83% amazing-wp-e-commerce

Code Review | Amazing WP e-Commerce

WordPress plugin Amazing WP e-Commerce scored83%from 54 tests.

About plugin

  • Plugin page: amazing-wp-e-comm...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2013
  • Latest release: Mar 12, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: RistoNiinemets (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,891 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 gracefully, with no errors

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

This is a short check of server-side resources used by Amazing WP e-Commerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.28 ▼7.29
Dashboard /wp-admin3.34 ▼0.0046.15 ▼24.39
Posts /wp-admin/edit.php3.39 ▲0.0449.17 ▼7.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0494.99 ▼8.23
Media Library /wp-admin/upload.php3.27 ▲0.0443.84 ▲3.03

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Amazing WP e-Commerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.152.19 ▲0.5239.59 ▼6.56
Dashboard /wp-admin2,195 ▲185.62 ▼0.0590.28 ▼40.6543.19 ▼7.88
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0539.67 ▲2.4635.75 ▼3.27
Add New Post /wp-admin/post-new.php1,526 ▼1123.01 ▲4.46686.40 ▲31.5159.55 ▼9.23
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.05101.58 ▼10.5846.23 ▼1.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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
Good news, no errors were detected

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
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/amazing-wp-e-commerce/amazing-ecommerce.php on line 29
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/amazing-wp-e-commerce/amazing-ecommerce.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/amazing-wp-e-commerce/amazing-ecommerce.php:30
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/amazing-wp-e-commerce/trunk/amazing-ecommerce.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/amazing-wp-e-commerce/trunk/amazing-ecommerce.php:30
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/amazing-wp-e-commerce/trunk/amazing-ecommerce.php on line 29
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/amazing-wp-e-commerce/amazing-ecommerce.php on line 29
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/amazing-wp-e-commerce/trunk/amazing-ecommerce.php on line 29

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === amazing-wp-e-commerce === )
Please take inspiration from this readme.txt

amazing-wp-e-commerce/amazing-ecommerce.php 85% from 13 tests

The primary PHP file in "Amazing WP e-Commerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("amazing-wp-e-commerce.php" instead of "amazing-ecommerce.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin300 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP179282166
CSS1161667
JavaScript2162067

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions42
▷ Named functions42100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin