89% doubridge

Code Review | Import Products and Handle Orders

WordPress plugin Import Products and Handle Orders scored 89% from 54 tests.

About plugin

  • Plugin page: doubridge
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 20, 2017
  • Latest release: Sep 28, 2018
  • Number of updates: 18
  • Update frequency: every 17.6 days
  • Top authors: doubridge (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active / 4,762 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Import Products and Handle Orders
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.83 ▼5.07
Dashboard /wp-admin3.33 ▲0.0347.47 ▲4.42
Posts /wp-admin/edit.php3.38 ▲0.0345.47 ▼4.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.67 ▲0.05
Media Library /wp-admin/upload.php3.26 ▲0.0337.40 ▲3.90

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Import Products and Handle Orders: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.181.61 ▼0.2139.80 ▼6.73
Dashboard /wp-admin2,206 ▲185.89 ▲0.85100.54 ▼1.4938.78 ▼5.71
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0439.80 ▼0.7834.38 ▼5.26
Add New Post /wp-admin/post-new.php1,533 ▼923.18 ▲4.90604.29 ▼27.0254.88 ▼3.99
Media Library /wp-admin/upload.php1,391 ▲64.14 ▼0.1493.13 ▼20.8843.38 ▼5.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

doubridge/doubridge.php 92% from 13 tests

Analyzing the main PHP file in "Import Products and Handle Orders" version 1.2.1
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 225 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 detected677 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP717256677

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods2461.54%
▷ Protected methods12.56%
▷ Private methods1435.90%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected