10% aspl-advance-report-for-woocommerce

Code Review | ASPL Advance Report for Woocommerce

WordPress plugin ASPL Advance Report for Woocommerce scored10%from 54 tests.

About plugin

  • Plugin page: aspl-advance-repo...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2020
  • Latest release: Mar 12, 2020
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: acespritech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /422 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/aspl-advance-report-for-woocommerce/include/dashboard.php+954
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.50ms] Passed 4 tests

A check of server-side resources used by ASPL Advance Report for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.09 ▼0.45
Dashboard /wp-admin3.31 ▲0.0051.38 ▲3.70
Posts /wp-admin/edit.php3.36 ▲0.0051.31 ▼0.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.13 ▼8.05
Media Library /wp-admin/upload.php3.23 ▲0.0036.46 ▼0.55

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ASPL Advance Report for Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2813.90 ▼0.502.08 ▼0.1141.58 ▼4.89
Dashboard /wp-admin2,189 ▲115.62 ▼0.0894.24 ▼16.0539.94 ▼4.73
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0141.64 ▼1.0038.30 ▼2.15
Add New Post /wp-admin/post-new.php1,526 ▼223.37 ▲0.13676.04 ▼17.3855.28 ▲3.22
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.1198.50 ▼6.6445.52 ▼3.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/aspl-advance-report-for-woocommerce/include/dashboard.php on line 954

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: The official readme.txt is a good inspiration

aspl-advance-report-for-woocommerce/WooCommerce-advance-report.php 69% from 13 tests

"ASPL Advance Report for Woocommerce" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("aspl-advance-report-for-woocommerce.php" instead of "WooCommerce-advance-report.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.1" instead of "3.0.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected25,803 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS51,4625911,330
SVG30129,026
JavaScript4448964,574
PHP318632873

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
11 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sales.png11.26KB4.27KB▼ 62.09%
images/product-icon.png1.67KB1.28KB▼ 23.20%
images/static_icon.png0.42KB0.19KB▼ 56.02%
images/tax-icon2.png1.30KB1.43KB0.00%
images/xukxynzcxblwudilgpnn.png15.20KB5.58KB▼ 63.26%