90% omnivore

Code Review | Omnivore

WordPress plugin Omnivore scored90%from 54 tests.

About plugin

  • Plugin page: omnivore
  • Plugin version: 3.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 5, 2018
  • Latest release: Aug 30, 2023
  • Number of updates: 17
  • Update frequency: every 103.6 days
  • Top authors: citybeachsoftware (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.83ms] Passed 4 tests

This is a short check of server-side resources used by Omnivore
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.37 ▼0.16
Dashboard /wp-admin3.35 ▲0.0447.27 ▼2.94
Posts /wp-admin/edit.php3.46 ▲0.1046.39 ▼4.09
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.01 ▼12.13
Media Library /wp-admin/upload.php3.27 ▲0.0437.03 ▲3.85

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Omnivore
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.321.61 ▼0.0339.66 ▼6.14
Dashboard /wp-admin2,189 ▲155.54 ▲0.0181.19 ▼10.0538.16 ▼4.77
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0633.02 ▼0.8034.44 ▼1.65
Add New Post /wp-admin/post-new.php1,526 ▼1023.68 ▲4.93679.00 ▲45.1355.49 ▼16.18
Media Library /wp-admin/upload.php1,403 ▲124.18 ▲0.0295.40 ▼2.9139.68 ▼4.22

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: woocommerce, omnivore

omnivore/omnivore.php Passed 13 tests

The principal PHP file in "Omnivore" v. 3.12 is loaded by WordPress automatically on each request
67 characters long description:
Connect your WooCommerce to your several marketplaces via Omnivore.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected350 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38518350

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.50
▷ Minimum class complexity12.00
▷ Maximum class complexity13.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods315.79%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin