84% simpankira-for-woocommerce

Code Review | SimpanKira for WooCommerce

WordPress plugin SimpanKira for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: simpankira-for-wo...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 6.3.1
  • First release: Jan 22, 2021
  • Latest release: Aug 15, 2021
  • Number of updates: 14
  • Update frequency: every 17.9 days
  • Top authors: simpankira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▲0.27ms] Passed 4 tests

An overview of server-side resources used by SimpanKira for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5543.92 ▼2.12
Dashboard /wp-admin3.83 ▲0.5350.33 ▲3.60
Posts /wp-admin/edit.php3.88 ▲0.5354.90 ▲2.31
Add New Post /wp-admin/post-new.php6.41 ▲0.5396.84 ▼2.71
Media Library /wp-admin/upload.php3.75 ▲0.5345.18 ▲10.57
Codestar Framework /wp-admin/tools.php?page=csf-welcome3.7941.17

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 143 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
simpankira
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SimpanKira for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲9413.52 ▼0.884.70 ▲2.5640.11 ▼4.54
Dashboard /wp-admin2,249 ▲615.89 ▲0.99111.15 ▼0.0772.66 ▲25.84
Posts /wp-admin/edit.php2,131 ▲452.00 ▲0.0439.88 ▲1.9235.77 ▲2.06
Add New Post /wp-admin/post-new.php1,702 ▲18122.54 ▼0.72657.29 ▼35.7854.75 ▼5.53
Media Library /wp-admin/upload.php1,431 ▲464.20 ▲0.05101.89 ▼13.7971.61 ▲22.94
Synchronization /wp-admin/admin.php?page=simpankira#tab=synchronization1,4914.3480.77112.16
Logs /wp-admin/admin.php?page=simpankira#tab=logs1,4103.6758.4679.08
Codestar Framework /wp-admin/tools.php?page=csf-welcome1,4573.7045.0497.15
API Credentials /wp-admin/admin.php?page=simpankira#tab=api-credentials1,4083.8155.4486.31
Account Settings /wp-admin/admin.php?page=simpankira#tab=account-settings1,4193.6655.1984.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • simpankira
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=simpankira#tab=synchronization
    • > Network (severe)
    wp-content/plugins/simpankira-for-woocommerce/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=simpankira#tab=synchronization
    • > Network (severe)
    wp-content/plugins/simpankira-for-woocommerce/assets/css/images/ui-icons_888888_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: billing, inventory, pos, invoice, payroll...

simpankira-for-woocommerce/simpankira-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "SimpanKira for WooCommerce" version 1.0.1
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simpankira-for-woocommerce.php" instead of "simpankira-woocommerce.php")

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
Everything looks great! No dangerous files found in this plugin16,642 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
PHP842,3911,0879,673
PO File203,1973,5946,534
Markdown2850379
CSS51552
JavaScript2222
SVG2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity18.48
▷ Minimum class complexity1.00
▷ Maximum class complexity137.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes63
▷ Abstract classes34.76%
▷ Concrete classes6095.24%
▷ Final classes00.00%
Methods249
▷ Static methods3112.45%
▷ Public methods21686.75%
▷ Protected methods41.61%
▷ Private methods2911.65%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/simpankira_icon.png0.92KB1.01KB0.00%
assets/images/simpankira.png1.25KB1.39KB0.00%
libraries/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%