84% datapocket

Code Review | Connect WooCommerce and WordPress to Canva, Figma and Adobe

WordPress plugin Connect WooCommerce and WordPress to Canva, Figma and Adobe scored84%from 54 tests.

About plugin

  • Plugin page: datapocket
  • Plugin version: 1.2.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Jun 26, 2023
  • Number of updates: 14
  • Update frequency: every 17.2 days
  • Top authors: ovixia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /943 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.13MB] [CPU: ▼7.65ms] Passed 4 tests

Server-side resources used by Connect WooCommerce and WordPress to Canva, Figma and Adobe
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.53 ▼3.42
Dashboard /wp-admin3.45 ▲0.1048.96 ▼20.82
Posts /wp-admin/edit.php3.59 ▲0.2497.76 ▲44.06
Add New Post /wp-admin/post-new.php6.05 ▲0.1698.60 ▼10.07
Media Library /wp-admin/upload.php3.37 ▲0.1439.51 ▲3.71

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
datapocket_token
datapocket_version
can_compress_scripts
datapocket_wp_token
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Connect WooCommerce and WordPress to Canva, Figma and Adobe: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.37 ▼0.051.58 ▼0.4147.46 ▲4.28
Dashboard /wp-admin2,213 ▲335.59 ▼0.0185.20 ▼18.8097.06 ▲52.23
Posts /wp-admin/edit.php2,115 ▲152.11 ▲0.0933.91 ▼2.7134.35 ▼2.01
Add New Post /wp-admin/post-new.php1,539 ▼723.23 ▲2.13676.19 ▲24.6662.68 ▲3.93
Media Library /wp-admin/upload.php1,409 ▲64.22 ▲0.02105.10 ▲8.5364.32 ▲19.05

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 were found after uninstall: 9 options
    • can_compress_scripts
    • datapocket_wp_token
    • datapocket_version
    • widget_theysaidso_widget
    • datapocket_token
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/datapocket/includes/admin/views/html-admin-page.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (DataPocket plugin.), #2 (Activate plugin.), #3 (Copy key from DataPocket Settings.), #4 (Paste in your DataPocket account.), #5 (The sync will start in a blink.)
The official readme.txt might help

datapocket/datapocket.php Passed 13 tests

The entry point to "Connect WooCommerce and WordPress to Canva, Figma and Adobe" version 1.2.9 is a PHP file that has certain tags in its header comment area
59 characters long description:
Connect WooCommerce and WordPress to Canva, Figma and Adobe

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin676 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13180456614
CSS29661
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.11
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods45
▷ Static methods2964.44%
▷ Public methods4293.33%
▷ Protected methods00.00%
▷ Private methods36.67%
Functions17
▷ Named functions529.41%
▷ Anonymous functions1270.59%
Constants5
▷ Global constants5100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/menu-icon.png0.62KB0.65KB0.00%