68% sell-digital-products

Code Review | Sell Digitial Products with Oronjo

WordPress plugin Sell Digitial Products with Oronjo scored 68% from 54 tests.

About plugin

  • Plugin page: sell-digital-prod...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: Feb 2, 2018
  • Number of updates: 11
  • Update frequency: every 71.1 days
  • Top authors: rluitwieler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,388 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.95MB] [CPU: ▼30.63ms] Passed 4 tests

Analyzing server-side resources used by Sell Digitial Products with Oronjo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.39 ▲2.03
Dashboard /wp-admin2.99 ▼0.3123.57 ▼23.20
Posts /wp-admin/edit.php3.00 ▼0.3624.50 ▼22.77
Add New Post /wp-admin/post-new.php2.99 ▼2.8921.87 ▼69.62
Media Library /wp-admin/upload.php3.00 ▼0.2323.04 ▼6.91

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Sell Digitial Products with Oronjo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,041 ▲30614.07 ▼0.4922.64 ▲20.9451.95 ▲10.66
Dashboard /wp-admin2,207 ▲194.86 ▼0.2194.71 ▼23.6140.64 ▼0.17
Posts /wp-admin/edit.php2,090 ▲11.97 ▼0.0340.19 ▼0.3236.24 ▲1.70
Add New Post /wp-admin/post-new.php1,545 ▲1218.43 ▼5.03623.36 ▼35.8051.64 ▼17.79
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.1096.36 ▼1.6645.15 ▲2.91
Sell digital products /wp-admin/sell-digital-products.php260.440.1013.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • oronjo_lic_msg_sell-digital-products
    • oronjo_license_sell-digital-products
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sell-digital-products/sell-digital-products.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/sell-digital-products.php
    • > Network (severe)
    wp-admin/sell-digital-products.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration Passed 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
10 plugin tags: sell with paypal, oronjo, sell digital product, sell, sell content...

sell-digital-products/sell-digital-products.php Passed 13 tests

"Sell Digitial Products with Oronjo" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
Automatically populate your Oronjo products into Wordpress, includes a shopping cart.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected572 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-cart-256x256.png14.80KB5.51KB▼ 62.73%
images/icon-256x256.png11.94KB4.56KB▼ 61.82%