89% tapsys-for-woocommerce

Code Review | Tapsys for WooCommerce

WordPress plugin Tapsys for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: tapsys-for-woocom...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-5.5
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Aug 20, 2021
  • Number of updates: 30
  • Update frequency: every 9.0 days
  • Top authors: tapsys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 522 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.35ms] Passed 4 tests

An overview of server-side resources used by Tapsys for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.93 ▼2.52
Dashboard /wp-admin3.36 ▲0.0548.04 ▲1.99
Posts /wp-admin/edit.php3.47 ▲0.1147.61 ▼0.38
Add New Post /wp-admin/post-new.php5.94 ▲0.0594.61 ▼5.31
Media Library /wp-admin/upload.php3.28 ▲0.0534.91 ▼1.17

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Tapsys for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.51 ▲0.212.01 ▼0.1746.23 ▲0.99
Dashboard /wp-admin2,206 ▲214.84 ▼1.01106.54 ▲1.5640.09 ▼2.70
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0439.78 ▼1.1035.99 ▼1.31
Add New Post /wp-admin/post-new.php1,534 ▲123.12 ▼0.21584.93 ▼8.3855.63 ▼5.56
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0495.33 ▼4.3942.53 ▼3.40

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Configuring your plugin), #2 (What a customer sees on checkout.)
The official readme.txt is a good inspiration

tapsys-for-woocommerce/tapsys-woocommerce-plugin.php 92% from 13 tests

The main PHP file in "Tapsys for WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tapsys-for-woocommerce.php" instead of "tapsys-woocommerce-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin422 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP287116422

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity17.00
▷ Minimum class complexity11.00
▷ Maximum class complexity23.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods1254.55%
▷ Protected methods836.36%
▷ Private methods29.09%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo1.png15.41KB5.26KB▼ 65.90%
images/logo.png35.08KB35.05KB0.09%