10% sleekstore

Code Review | sleekStore lite

WordPress plugin sleekStore lite scored 10% from 54 tests.

About plugin

  • Plugin page: sleekstore
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 5.8.1
  • First release: Jan 23, 2013
  • Latest release: Jan 23, 2013
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: dunqan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 2,550 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/sleekstore/w9ss.php+52
    Function create_function() is deprecated

Server metrics [RAM: ▼1.18MB] [CPU: ▼215.35ms] Passed 4 tests

Analyzing server-side resources used by sleekStore lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼0.547.80 ▼27.36
Dashboard /wp-admin2.48 ▼0.5810.47 ▼34.66
Posts /wp-admin/edit.php2.48 ▼0.639.10 ▼39.83
Add New Post /wp-admin/post-new.php2.48 ▼2.9610.76 ▼756.08
Media Library /wp-admin/upload.php2.48 ▼0.539.21 ▼30.84
Inventory /wp-admin/admin.php?page=w9ss_admin_inventory2.489.51
Settings /wp-admin/admin.php?page=w9ss_admin_options2.4810.31
Orders /wp-admin/admin.php?page=w9ss_admin_page2.489.56

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: 2 new tables, 2 new options
New tables
wp_w9ss_order
wp_w9ss_item
New WordPress options
w9ss_db_version
widget_w9ss_cartwidget

Browser metrics Passed 4 tests

A check of browser resources used by sleekStore lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,743 ▲14715.98 ▼0.078.43 ▼2.2647.03 ▼2.11
Dashboard /wp-admin3,006 ▲725.92 ▼0.09146.12 ▼5.15108.37 ▼2.61
Posts /wp-admin/edit.php2,778 ▲392.72 ▼0.0062.47 ▼2.0192.22 ▲1.44
Add New Post /wp-admin/post-new.php1,525 ▼14718.67 ▼0.15363.43 ▼14.00115.91 ▲10.87
Media Library /wp-admin/upload.php1,772 ▼355.03 ▼0.02151.21 ▲3.21117.84 ▼5.54
Inventory /wp-admin/admin.php?page=w9ss_admin_inventory1,3572.2257.8080.07
Settings /wp-admin/admin.php?page=w9ss_admin_options1,3572.2861.6692.48
Orders /wp-admin/admin.php?page=w9ss_admin_page1,3542.1852.2778.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/sleekstore/w9ss.php+52
    Function create_function() is deprecated
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_w9ss_item
    • wp_w9ss_order
  • The uninstall procedure has failed, leaving 2 options in the database
    • widget_w9ss_cartwidget
    • w9ss_db_version

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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=w9ss_admin_page
    • > POST request to /wp-admin/admin-ajax.php
    • > Deprecated in wp-content/plugins/sleekstore/w9ss.php+52
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sleekstore/w9ss.php:13

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 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
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Add images for these screenshots: #1 (Settings panel), #2 (sleekStore product settings), #3 (Order statues)
Please take inspiration from this readme.txt

sleekstore/w9ss.php 92% from 13 tests

The main PHP file in "sleekStore lite" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sleekstore.php" instead of "w9ss.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,411 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5327232,742
PO File1264394567
CSS1230102

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity18.86
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods125
▷ Static methods00.00%
▷ Public methods12499.20%
▷ Protected methods00.00%
▷ Private methods10.80%
Functions34
▷ Named functions34100.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 were not PNG files found in your plugin