83% testerwp-ecommerce-companion

Code Review | Testerwp ecommerce companion

WordPress plugin Testerwp ecommerce companion scored83%from 54 tests.

About plugin

  • Plugin page: testerwp-ecommerc...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2022
  • Latest release: Aug 14, 2023
  • Number of updates: 10
  • Update frequency: every 49.4 days
  • Top authors: wptexture (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /4,030 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Testerwp ecommerce companion
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.35 ▲2.22
Dashboard /wp-admin3.31 ▲0.0146.94 ▼2.42
Posts /wp-admin/edit.php3.36 ▲0.0147.08 ▼1.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.40 ▼13.56
Media Library /wp-admin/upload.php3.23 ▲0.0136.51 ▼3.12

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 119 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Testerwp ecommerce companion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.16 ▼1.491.78 ▼0.1048.32 ▲6.84
Dashboard /wp-admin2,221 ▲185.79 ▲0.9299.87 ▼9.6138.64 ▼1.32
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0236.38 ▲2.4933.77 ▼5.15
Add New Post /wp-admin/post-new.php1,545 ▲1923.15 ▲5.24683.39 ▲46.3257.61 ▲12.16
Media Library /wp-admin/upload.php1,403 ▲94.39 ▲0.1797.33 ▼1.7543.23 ▲0.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
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 122× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/testerwp-ecommerce-companion/bizz-ecommerce/bizz-ecommerce-front-page/front-ribbon.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/testerwp-ecommerce-companion/eshopping-cart/customizer/section/frontpage/featured-banner.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/testerwp-ecommerce-companion/shopping-ecommerce-wp/shopping-ecommerce-wp-front-page/front-tabproductimage.php:2
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/testerwp-ecommerce-companion/eshopping-cart/customizer/section/frontpage/category-tab.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/testerwp-ecommerce-companion/eshopping-cart/eshopping-cart-front-page/front-bloglist.php:2
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/testerwp-ecommerce-companion/bizz-ecommerce/customizer/section/frontpage/category-tab.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/testerwp-ecommerce-companion/shopping-ecommerce-wp/customizer/section/frontpage/ribbon.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/testerwp-ecommerce-companion/bizz-ecommerce/bizz-ecommerce-front-page/front-topslider.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/testerwp-ecommerce-companion/bizz-ecommerce/customizer/section/frontpage/features.php:2
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/testerwp-ecommerce-companion/shopping-ecommerce-wp/customizer/section/frontpage/tab-productimage.php on line 2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("#")
The official readme.txt is a good inspiration

testerwp-ecommerce-companion/testerwp-ecommerce-companion.php 92% from 13 tests

The main PHP file in "Testerwp ecommerce companion" ver. 1.7 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:
  • Description: The description should be shorter than 140 characters (currently 204 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin6,881 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
PHP957913036,881

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity9.00
▷ Minimum method complexity9.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 4.45MB with 2.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
eshopping-cart/assets/images/default.png481.37KB120.25KB▼ 75.02%
shopping-kart-wp/assets/images/def-cat.png421.64KB174.49KB▼ 58.62%
shopping-ecommerce-wp/assets/images/def-cat.png421.64KB174.49KB▼ 58.62%
shopping-ecommerce-wp/assets/images/default.png953.76KB312.87KB▼ 67.20%
bizz-ecommerce/assets/images/default.png481.37KB120.25KB▼ 75.02%