89% orion-data-merge

Code Review | Orion Data Merge

WordPress plugin Orion Data Merge scored 89% from 54 tests.

About plugin

  • Plugin page: orion-data-merge
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jan 8, 2022
  • Latest release: Jan 8, 2022
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: mano88 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 874 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.99MB] [CPU: ▲5.46ms] Passed 4 tests

An overview of server-side resources used by Orion Data Merge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.45 ▲0.9948.31 ▲4.05
Dashboard /wp-admin4.28 ▲0.9857.81 ▲7.05
Posts /wp-admin/edit.php4.39 ▲1.0456.56 ▲11.59
Add New Post /wp-admin/post-new.php6.89 ▲1.0095.85 ▼0.86
Media Library /wp-admin/upload.php4.20 ▲0.9846.23 ▲11.58
Add a site /wp-admin/post-new.php?post_type=wms-sites4.2451.96
Sites /wp-admin/edit.php?post_type=wms-sites4.2443.95
Settings /wp-admin/edit.php?post_type=wms-sites&page=wms-manage-settings4.1640.85
New sync / merge /wp-admin/edit.php?post_type=wms-sites&page=wms-manage-synchronization4.1742.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
wms-site-key
widget_theysaidso_widget
can_compress_scripts
msd_path

Browser metrics Passed 4 tests

This is an overview of browser requirements for Orion Data Merge
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.98 ▼0.601.87 ▼0.2242.00 ▼0.52
Dashboard /wp-admin2,283 ▲955.29 ▲0.40118.89 ▲1.3544.66 ▲1.61
Posts /wp-admin/edit.php2,168 ▲762.39 ▲0.3938.92 ▼2.3433.56 ▲1.28
Add New Post /wp-admin/post-new.php1,736 ▲19422.69 ▲4.27612.28 ▲17.1534.20 ▼26.48
Media Library /wp-admin/upload.php1,462 ▲774.56 ▲0.37101.90 ▼2.0744.56 ▼0.79
Add a site /wp-admin/post-new.php?post_type=wms-sites1,5542.9359.8541.63
Sites /wp-admin/edit.php?post_type=wms-sites1,1132.3636.8428.69
Settings /wp-admin/edit.php?post_type=wms-sites&page=wms-manage-settings9121.9530.6931.48
New sync / merge /wp-admin/edit.php?post_type=wms-sites&page=wms-manage-synchronization8611.9028.4126.34

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
  • This plugin does not fully uninstall, leaving 8 options in the database
    • wms-site-key
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • msd_path

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: wordpress merging, wordpress merge database, wordpress database, wordpress data sync

orion-data-merge/wms.php 85% from 13 tests

"Orion Data Merge" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("orion-data-merge.php" instead of "wms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected24,907 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JSON1009,847
CSS51,8961459,769
PHP176651,6474,429
JavaScript5151170862

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.50
▷ Minimum class complexity1.00
▷ Maximum class complexity135.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes24
▷ Abstract classes416.67%
▷ Concrete classes2083.33%
▷ Final classes00.00%
Methods228
▷ Static methods73.07%
▷ Public methods18179.39%
▷ Protected methods31.32%
▷ Private methods4419.30%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants28
▷ Global constants2071.43%
▷ Class constants828.57%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/DataTables-1.10.25/images/sort_desc.png0.15KB0.25KB0.00%
admin/css/DataTables-1.10.25/images/sort_desc_disabled.png0.14KB0.25KB0.00%
admin/css/DataTables-1.10.25/images/sort_asc_disabled.png0.14KB0.25KB0.00%
admin/css/DataTables-1.10.25/images/sort_asc.png0.16KB0.25KB0.00%
admin/css/DataTables-1.10.25/images/sort_both.png0.20KB0.29KB0.00%