99% paypecker-omni-sync

Code Review | PayPecker Omni Sync

WordPress plugin PayPecker Omni Sync scored 99% from 54 tests.

About plugin

  • Plugin page: paypecker-omni-sync
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8.1
  • WordPress version: 5.9.2
  • First release: Feb 15, 2022
  • Latest release: Feb 16, 2022
  • Number of updates: 3
  • Update frequency: every 47.0 days
  • Top authors: paypecker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 55 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by PayPecker Omni Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0256.90 ▲5.15
Dashboard /wp-admin3.42 ▲0.0135.23 ▲1.51
Posts /wp-admin/edit.php3.66 ▲0.0139.54 ▲3.46
Add New Post /wp-admin/post-new.php6.89 ▼0.0891.86 ▼1,192.41
Media Library /wp-admin/upload.php3.31 ▲0.0122.83 ▼2.69

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by PayPecker Omni Sync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲1715.64 ▼0.145.64 ▼0.982.13 ▼0.99
Dashboard /wp-admin2,881 ▲276.12 ▲0.03122.48 ▼17.96160.47 ▼2.70
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0065.14 ▲0.97144.16 ▲1.18
Add New Post /wp-admin/post-new.php1,661 ▼11216.51 ▼4.58414.43 ▼81.50154.43 ▼4.27
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.01141.20 ▼4.56185.49 ▲0.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.) image missing
The official readme.txt might help

paypecker-omni-sync/woo-paypecker.php 92% from 13 tests

The entry point to "PayPecker Omni Sync" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paypecker-omni-sync.php" instead of "woo-paypecker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,373 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12255951,336
JSON10021
XML10016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity22.75
▷ Minimum class complexity1.00
▷ Maximum class complexity106.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods67
▷ Static methods3349.25%
▷ Public methods6698.51%
▷ Protected methods11.49%
▷ Private methods00.00%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants30
▷ Global constants13.33%
▷ Class constants2996.67%
▷ Public constants29100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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