89% platformly-for-woocommerce

Code Review | Platform.ly for WooCommerce

WordPress plugin Platform.ly for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: platformly-for-wo...
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: May 14, 2020
  • Latest release: Sep 21, 2022
  • Number of updates: 8
  • Update frequency: every 107.8 days
  • Top authors: platformlycom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /655 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.57ms] Passed 4 tests

This is a short check of server-side resources used by Platform.ly for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.46 ▲1.86
Dashboard /wp-admin3.31 ▼0.0446.96 ▼16.38
Posts /wp-admin/edit.php3.36 ▲0.0048.58 ▼3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.57 ▼15.83
Media Library /wp-admin/upload.php3.23 ▲0.0037.17 ▲1.88

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Platform.ly for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3214.26 ▼0.031.80 ▼0.3641.11 ▼0.78
Dashboard /wp-admin2,195 ▲145.63 ▼0.0894.18 ▼6.9842.29 ▼1.36
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0239.47 ▼2.2336.55 ▼0.68
Add New Post /wp-admin/post-new.php1,526 ▼223.21 ▲0.13642.20 ▼16.4948.66 ▼7.61
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0197.00 ▼8.9544.78 ▼0.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: platformly, event tracking, sales reporting, cart abandonment, ecommerce...

platformly-for-woocommerce/platformly-for-woocommerce.php 85% from 13 tests

This is the main PHP file of "Platform.ly for WooCommerce" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.9.13" instead of "3.5.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

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
Good job! No executable or dangerous file extensions detected12,419 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript52,4576659,668
PHP183272952,292
CSS3580459

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity31.00
▷ Minimum class complexity2.00
▷ Maximum class complexity122.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods118
▷ Static methods65.08%
▷ Public methods8773.73%
▷ Protected methods2420.34%
▷ Private methods75.93%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/profile_img.png2.03KB2.03KB0.00%
admin/img/logo.png1.17KB0.26KB▼ 77.30%