84% 123ezbiz-ecommerce-store-connector-a

Code Review | 123EzBiz Ecommerce For Wordpress

WordPress plugin 123EzBiz Ecommerce For Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: 123ezbiz-ecommerc...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2022
  • Latest release: Nov 21, 2022
  • Number of updates: 31
  • Update frequency: every 2.8 days
  • Top authors: 123ezbiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /238 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by 123EzBiz Ecommerce For Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.13 ▲4.61
Dashboard /wp-admin3.32 ▲0.0147.28 ▼0.82
Posts /wp-admin/edit.php3.37 ▲0.0145.09 ▼1.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.72 ▼5.99
Media Library /wp-admin/upload.php3.24 ▲0.0138.02 ▲3.43

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

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

Browser metrics Passed 4 tests

Checking browser requirements for 123EzBiz Ecommerce For Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.83 ▲0.431.87 ▲0.0444.69 ▲5.31
Dashboard /wp-admin2,206 ▲215.91 ▲1.01111.79 ▲5.4641.73 ▼0.65
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0437.66 ▼4.1734.13 ▼0.65
Add New Post /wp-admin/post-new.php1,534 ▼823.16 ▲5.06630.62 ▲23.0462.41 ▲11.22
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0795.53 ▼1.5941.13 ▼0.50

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/123ezbiz-ecommerce-store-connector-a/123EzBiz_A_Connector.php:20

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 Passed 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
1 plugin tags: 10

123ezbiz-ecommerce-store-connector-a/123EzBiz_A_Connector.php 85% from 13 tests

The main PHP file in "123EzBiz Ecommerce For Wordpress" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("123ezbiz-ecommerce-store-connector-a.php" instead of "123EzBiz_A_Connector.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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 detected95 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1351295

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.43
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin