78% omigo

Code Review | OMIGO

WordPress plugin OMIGO scored78%from 54 tests.

About plugin

  • Plugin page: omigo
  • Plugin version: 3.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0.2
  • WordPress version: 6.3.1
  • First release: Apr 25, 2018
  • Latest release: Sep 1, 2022
  • Number of updates: 57
  • Update frequency: every 28.3 days
  • Top authors: OMI Mexico (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,391 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.22MB] [CPU: ▼1.43ms] Passed 4 tests

Server-side resources used by OMIGO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2041.09 ▼1.20
Dashboard /wp-admin3.57 ▲0.2749.91 ▲0.90
Posts /wp-admin/edit.php3.63 ▲0.2745.36 ▼0.85
Add New Post /wp-admin/post-new.php6.09 ▲0.2184.22 ▼4.56
Media Library /wp-admin/upload.php3.43 ▲0.2136.34 ▲3.04
View donors /wp-admin/admin.php?page=omigo-api-donors3.4335.12
Exemption Letter /wp-admin/admin.php?page=omigo-api-letter3.4338.59
Settings /wp-admin/admin.php?page=omigo3.4437.20

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_omigo_widget
omigos
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by OMIGO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲20214.19 ▼0.4615.21 ▲13.0438.43 ▼9.97
Dashboard /wp-admin2,227 ▲395.79 ▲0.91100.15 ▼6.2338.52 ▼4.69
Posts /wp-admin/edit.php2,116 ▲272.06 ▲0.0037.43 ▲1.8035.37 ▲2.83
Add New Post /wp-admin/post-new.php1,535 ▲117.35 ▼5.82681.87 ▼7.7750.66 ▼7.13
Media Library /wp-admin/upload.php1,415 ▲274.20 ▼0.0395.10 ▼8.1741.55 ▼3.19
View donors /wp-admin/admin.php?page=omigo-api-donors9753.2738.7458.86
Exemption Letter /wp-admin/admin.php?page=omigo-api-letter1,0543.0342.1951.24
Settings /wp-admin/admin.php?page=omigo1,2393.2141.1966.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_omigo_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • omigos
    • omi_client_set
    • omi_client_id

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/omigo/omigo.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Eusonlito\\Captcha\\Captcha' not found in wp-content/plugins/omigo/vendor/eusonlito/captcha/tests/Tests.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in omigo/assets to your readme.txt
Please take inspiration from this readme.txt

omigo/omigo.php Passed 13 tests

The main PHP file in "OMIGO" ver. 3.3 adds more information about the plugin and also serves as the entry point for this plugin
25 characters long description:
Pay and Donate with OMIGO

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
Good job! No executable or dangerous file extensions detected3,700 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP153715411,637
CSS393511,465
JavaScript4488371
Markdown1540128
JSON20071
XML10018
YAML13010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity9.82
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods87
▷ Static methods3641.38%
▷ Public methods7282.76%
▷ Protected methods00.00%
▷ Private methods1517.24%
Functions31
▷ Named functions2890.32%
▷ Anonymous functions39.68%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
5 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/omigo_cc_logo.png32.29KB5.18KB▼ 83.95%
img/omigo_small_logo.png8.14KB3.13KB▼ 61.50%
img/omigo_renew_captcha.png2.94KB1.24KB▼ 57.72%
img/omigo_url_image.png39.88KB14.86KB▼ 62.73%
img/omigo_logo.png17.23KB6.18KB▼ 64.14%