78% improvely-for-woocommerce

Code Review | Improvely for WooCommerce

WordPress plugin Improvely for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: improvely-for-woo...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.0.0
  • WordPress version: 6.3.1
  • First release: Sep 19, 2012
  • Latest release: Oct 31, 2018
  • Number of updates: 20
  • Update frequency: every 111.7 days
  • Top authors: dangrossman (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /7,546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.95ms] Passed 4 tests

This is a short check of server-side resources used by Improvely for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.26 ▼2.83
Dashboard /wp-admin3.33 ▲0.0348.57 ▼3.36
Posts /wp-admin/edit.php3.38 ▲0.0344.91 ▼0.67
Add New Post /wp-admin/post-new.php5.91 ▲0.0381.94 ▼4.95
Media Library /wp-admin/upload.php3.25 ▲0.0337.60 ▲1.71
Improvely /wp-admin/options-general.php?page=improvely-config3.2230.82
Improvely /wp-admin/index.php?page=improvely-display3.2236.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Improvely for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.17 ▼1.084.77 ▲2.9142.26 ▼1.59
Dashboard /wp-admin2,220 ▲295.83 ▼0.07105.63 ▼21.5339.16 ▼20.25
Posts /wp-admin/edit.php2,105 ▲132.01 ▼0.0135.45 ▲0.1436.04 ▲3.45
Add New Post /wp-admin/post-new.php1,548 ▲2923.16 ▲0.27582.94 ▼104.2757.63 ▲1.65
Media Library /wp-admin/upload.php1,405 ▲204.21 ▲0.0699.13 ▼5.6245.13 ▼1.78
Improvely /wp-admin/options-general.php?page=improvely-config8912.1723.9432.92
Improvely /wp-admin/index.php?page=improvely-display7652.0723.3723.27

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/improvely-for-woocommerce/improvely.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/index.php?page=improvely-display
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot set properties of null (setting 'onload')" "TypeError: Cannot set properties of null (setting 'onload')\n at resizeImprovelyInit (/wp-admin/index.php?page=improvely-display:51:66)\n at HTMLDocument.\u003Canonymous> (/wp-admin/index.php?page=improvely-display:8:80)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/index.php?page=improvely-display
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot set properties of null (setting 'onload')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Example Report)
Please take inspiration from this readme.txt

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

The primary PHP file in "Improvely for WooCommerce" version 1.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("improvely-for-woocommerce.php" instead of "improvely.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 233 characters long)

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
No dangerous file extensions were detected168 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1448168

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions8
▷ Named functions8100.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
3 PNG files occupy 0.41MB with 0.25MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png77.67KB29.01KB▼ 62.66%
banner.png160.75KB76.67KB▼ 52.31%
install.png185.90KB66.45KB▼ 64.25%