78% orbisius-cyberstore

Code Review | Orbisius CyberStore

WordPress plugin Orbisius CyberStore scored78%from 54 tests.

About plugin

  • Plugin page: orbisius-cyberstore
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.7
  • WordPress version: 6.3.1
  • First release: May 21, 2013
  • Latest release: Jun 2, 2017
  • Number of updates: 237
  • Update frequency: every 7.6 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /7,175 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.45MB] [CPU: ▼3.06ms] Passed 4 tests

Server-side resources used by Orbisius CyberStore
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4845.14 ▲6.49
Dashboard /wp-admin3.80 ▲0.4656.81 ▼10.56
Posts /wp-admin/edit.php3.86 ▲0.5053.86 ▲11.19
Add New Post /wp-admin/post-new.php6.32 ▲0.4494.93 ▼16.28
Media Library /wp-admin/upload.php3.66 ▲0.4444.49 ▲8.11
Products /wp-admin/admin.php?page=orbisius-cyberstore/menu.products.php3.6536.34
Help /wp-admin/admin.php?page=orbisius-cyberstore/menu.support.php3.6436.40
Dashboard /wp-admin/admin.php?page=orbisius-cyberstore/menu.dashboard.php3.6543.90
Add Product /wp-admin/admin.php?page=orbisius-cyberstore/menu.product.add.php3.6936.61
Extensions /wp-admin/admin.php?page=orbisius-cyberstore/menu.extensions.php3.6336.17
Settings /wp-admin/admin.php?page=orbisius-cyberstore/menu.settings.php3.7538.75
FAQ /wp-admin/admin.php?page=orbisius-cyberstore/menu.faq.php3.6334.13
About /wp-admin/admin.php?page=orbisius-cyberstore/menu.about.php3.6333.41

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 47 new files
Database: 1 new table, 7 new options
New tables
wp_orb_cyber_store_products
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
orb_cyber_store_db_version
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Orbisius CyberStore
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲15913.28 ▼1.118.58 ▲6.2643.36 ▼2.21
Dashboard /wp-admin2,241 ▲645.58 ▼0.1095.90 ▲2.5365.20 ▲22.29
Posts /wp-admin/edit.php2,158 ▲582.02 ▲0.0235.17 ▼4.8337.83 ▼1.40
Add New Post /wp-admin/post-new.php1,577 ▲4222.75 ▲4.55677.69 ▲22.8162.37 ▼4.29
Media Library /wp-admin/upload.php1,458 ▲614.13 ▼0.07100.41 ▼3.9875.43 ▲31.35
Products /wp-admin/admin.php?page=orbisius-cyberstore/menu.products.php8771.9923.8626.48
Help /wp-admin/admin.php?page=orbisius-cyberstore/menu.support.php1,6058.24203.4255.57
Dashboard /wp-admin/admin.php?page=orbisius-cyberstore/menu.dashboard.php1,5643.9682.2047.79
Add Product /wp-admin/admin.php?page=orbisius-cyberstore/menu.product.add.php1,5693.9979.3844.17
Extensions /wp-admin/admin.php?page=orbisius-cyberstore/menu.extensions.php8772.0427.6125.33
Settings /wp-admin/admin.php?page=orbisius-cyberstore/menu.settings.php1,8724.0372.3436.06
FAQ /wp-admin/admin.php?page=orbisius-cyberstore/menu.faq.php9192.3022.9529.78
About /wp-admin/admin.php?page=orbisius-cyberstore/menu.about.php8531.9825.1720.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/orbisius-cyberstore/orbisius-cyberstore.php
    • > /wp-content/plugins/orbisius-cyberstore/zzz_contact_form.php
  • 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/orbisius-cyberstore/menu.faq.php:13
    • > PHP Warning
      include_once(): Failed opening 'ORBISIUS_DIGISHOP_BASE_DIR/zzz_contact_form.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/orbisius-cyberstore/menu.contact.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/orbisius-cyberstore/menu.product.add.php:6
    • > PHP Notice
      Undefined variable: orbisius_digishop_obj in wp-content/plugins/orbisius-cyberstore/zzz_admin_sidebar.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/orbisius-cyberstore/menu.support.php:10
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/orbisius-cyberstore/zzz_admin_sidebar.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get() on null in wp-content/plugins/orbisius-cyberstore/menu.settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/orbisius-cyberstore/menu.products.php:2
    • > PHP Notice
      Undefined variable: orbisius_digishop_obj in wp-content/plugins/orbisius-cyberstore/menu.support.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_action() in wp-content/plugins/orbisius-cyberstore/menu.extensions.php:15

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 30 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Plugin icon when editing post/page), #2 (Dashboard), #3 (Products), #4 (Add Product), #5 (Settings), #6 (FAQ), #7 (Help), #8 (Extensions), #9 (About), #10 (Buy Now Button), #11 (Buy Now Button after the transaction with the success message.), #12 (Screenshot showing variable products, download button for a free product and simple product)
Please take inspiration from this readme.txt

orbisius-cyberstore/orbisius-cyberstore.php Passed 13 tests

The main file in "Orbisius CyberStore" v. 2.1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
Start selling digital products such as e-books, plugins, themes, reports in less than 3 minutes.

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
There were no executable files found in this plugin3,637 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP138037273,238
HTML2389173
XML200121
CSS215172
JavaScript261933

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity77.25
▷ Minimum class complexity3.00
▷ Maximum class complexity220.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods89
▷ Static methods2528.09%
▷ Public methods8898.88%
▷ Protected methods00.00%
▷ Private methods11.12%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 1.26MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.62KB0.63KB0.00%
screenshot-6.png98.67KB34.30KB▼ 65.24%
screenshot-8.png77.34KB25.79KB▼ 66.65%
images/example_paypal_non_ssl_site_warning.png28.08KB12.68KB▼ 54.83%
screenshot-9.png65.72KB23.17KB▼ 64.74%