83% orderstorm-wordpress-e-commerce-custom

Code Review | OrderStorm eCommerce Custom Files Manager

WordPress plugin OrderStorm eCommerce Custom Files Manager scored83%from 54 tests.

About plugin

  • Plugin page: orderstorm-wordpr...
  • Plugin version: 1.0.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2011
  • Latest release: Jan 27, 2016
  • Number of updates: 70
  • Update frequency: every 21.8 days
  • Top authors: carlosman (90%)OrderStorm (11.43%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,764 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.93ms] Passed 4 tests

An overview of server-side resources used by OrderStorm eCommerce Custom Files Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.45 ▼4.17
Dashboard /wp-admin3.31 ▲0.0045.44 ▼6.11
Posts /wp-admin/edit.php3.36 ▲0.0046.93 ▼9.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.78 ▼19.53
Media Library /wp-admin/upload.php3.23 ▲0.0034.44 ▼0.32

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for OrderStorm eCommerce Custom Files Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.361.84 ▲0.1140.79 ▼0.88
Dashboard /wp-admin2,195 ▲185.64 ▼0.0390.81 ▼1.8240.43 ▼0.10
Posts /wp-admin/edit.php2,103 ▲32.03 ▼0.0134.99 ▼4.0534.40 ▼3.48
Add New Post /wp-admin/post-new.php1,526 ▼823.69 ▲5.40709.44 ▲68.9564.57 ▼4.59
Media Library /wp-admin/upload.php1,403 ▲34.17 ▲0.05102.23 ▼5.6943.24 ▼0.99

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function orderstorm_ecommerce() in wp-content/plugins/orderstorm-wordpress-e-commerce-custom/templates/category_page.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function orderstorm_ecommerce() in wp-content/plugins/orderstorm-wordpress-e-commerce-custom/templates/render_product_details_custom_1.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function orderstorm_ecommerce() in wp-content/plugins/orderstorm-wordpress-e-commerce-custom/templates/render_product_details.php:22

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("www.orderstorm.com/wordpress-e-commerce-sign-up/ecommerce-wordpress-plugin-pricing/")
You can take inspiration from this readme.txt

orderstorm-wordpress-e-commerce-custom/orderstorm-ecommerce-custom.php 85% from 13 tests

The main PHP file in "OrderStorm eCommerce Custom Files Manager" ver. 1.0.14 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("orderstorm-wordpress-e-commerce-custom.php" instead of "orderstorm-ecommerce-custom.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,361 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS11200561,189
PHP42261764
HTML8119408

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.71
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%
Functions0
▷ Named functions00.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
11 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/menu_bottom_blue.png3.89KB0.25KB▼ 93.45%
images/menu_top_blue.png3.89KB0.26KB▼ 93.34%
images/menu_top.png2.98KB0.62KB▼ 79.33%
images/bullet.png2.83KB0.13KB▼ 95.37%
images/menu_center.png2.86KB0.27KB▼ 90.43%