84% oc-customers-import

Code Review | OpenCart Customers Import

WordPress plugin OpenCart Customers Import scored84%from 54 tests.

About plugin

  • Plugin page: oc-customers-import
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 7, 2018
  • Latest release: Jan 17, 2019
  • Number of updates: 5
  • Update frequency: every 29.8 days
  • Top authors: mostafasaeed543 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /2,213 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: ▼9.60ms] Passed 4 tests

Analyzing server-side resources used by OpenCart Customers Import
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.18 ▼4.05
Dashboard /wp-admin3.32 ▼0.0246.18 ▼15.18
Posts /wp-admin/edit.php3.37 ▲0.0244.79 ▼3.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.81 ▼15.99
Media Library /wp-admin/upload.php3.25 ▲0.0234.95 ▲1.13
OpenCart Customers Import /wp-admin/users.php?page=op-customers-import3.2928.56

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for OpenCart Customers Import
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.171.69 ▼0.4545.76 ▼0.13
Dashboard /wp-admin2,207 ▲195.85 ▲0.83101.36 ▼12.1637.71 ▼6.35
Posts /wp-admin/edit.php2,096 ▲102.05 ▲0.0638.85 ▲1.3433.60 ▼0.50
Add New Post /wp-admin/post-new.php1,536 ▲1523.26 ▲0.47666.83 ▲10.3365.47 ▲13.28
Media Library /wp-admin/upload.php1,392 ▲104.24 ▲0.07100.70 ▲1.6645.94 ▲3.59
OpenCart Customers Import /wp-admin/users.php?page=op-customers-import7712.0323.1227.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oc-customers-import/oc-customers-import.php:56

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt might help

oc-customers-import/oc-customers-import.php Passed 13 tests

Analyzing the main PHP file in "OpenCart Customers Import" version 1.1.0
25 characters long description:
Import OpenCart Customers

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected108 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31828108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin