90% simpl-for-woocommerce

Code Review | Simpl for WooCommerce

WordPress plugin Simpl for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: simpl-for-woocomm...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-4.8
  • WordPress version: 6.3.1
  • First release: Jul 4, 2018
  • Latest release: Jul 4, 2018
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: getsimpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /718 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.05MB] [CPU: ▼4.49ms] Passed 4 tests

A check of server-side resources used by Simpl for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.61 ▼5.99
Dashboard /wp-admin3.36 ▲0.0551.69 ▲3.45
Posts /wp-admin/edit.php3.41 ▲0.0548.02 ▼5.20
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.99 ▼9.49
Media Library /wp-admin/upload.php3.28 ▲0.0538.34 ▲2.72

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simpl for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.20 ▼1.131.74 ▼0.0843.95 ▼4.16
Dashboard /wp-admin2,221 ▲185.81 ▲0.93102.98 ▼1.6237.42 ▼7.25
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0636.09 ▼0.5035.39 ▼1.14
Add New Post /wp-admin/post-new.php1,554 ▲2318.41 ▼4.74615.92 ▼13.9265.67 ▲12.79
Media Library /wp-admin/upload.php1,403 ▲94.28 ▼0.02105.33 ▼18.7744.42 ▼3.29

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
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: simpl, india, ecommerce, buy now pay later, woocommerce...

simpl-for-woocommerce/Simpl_WooCommerce.php 92% from 13 tests

Analyzing the main PHP file in "Simpl for WooCommerce" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simpl-for-woocommerce.php" instead of "Simpl_WooCommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin395 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12324395

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin